logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

       Masahiro Chiba <nihen@megabbs.com>

Description

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

License

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

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

Name

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

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

Thanks

       miyagawa nothingmuch

See Also