IO::File::WithPath(3pm)

IO::File::WithPath3pm

An io::file extension that keeps the pathname

Usage

  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

Overview

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

Methods

new

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

path

file-path

Thanks

miyagawa nothingmuch

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–9
  2. 10–13

Author

Masahiro Chiba <[email protected]>

License

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

From libio-file-withpath-perl 0.09-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.