DOKK / manpages / debian 12 / libio-file-withpath-perl / IO::File::WithPath.3pm.en
IO::File::WithPath(3pm) User Contributed Perl Documentation IO::File::WithPath(3pm)

IO::File::WithPath - An IO::File extension that keeps the pathname

  use IO::File::WithPath;
  my $io = IO::File::WithPath->new('/path/to/file');
  print $io->path; # print '/path/to/file'
  print $io->getline; # IO::File-method

IO::File::WithPath is a Perl module extending IO::File to keep track of the absolute path name.

create object from file-path as IO::File->new(). but file-path not include MODE.(e.g. '</path/to/file')
file-path

Masahiro Chiba <nihen@megabbs.com>

miyagawa nothingmuch

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Copyright (c) 2009-2011 Masahiro Chiba <nihen@megabbs.com>

2018-04-14 perl v5.26.1