NAME

IO::File::WithPath - IO::File remember file path

SYNOPSIS

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

open my $fh, '<', '/path/to/file';
$io = IO::File::WithPath->from_open_handle($fh);
print $io->path; # print '/path/to/file'

DESCRIPTION

IO::File::WithPath is IO::File remember file path.

METHODS

new

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

from_open_handle

create object from filehandle.

path

Path::Clss::File or Path::Class::Dir instance

AUTHOR

Masahiro Chiba <chiba@geminium.com>

THANKS TODO

miyagawa nothingmuch

SEE ALSO

LICENSE

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