IO::Fi...thPath(3pm)
π NAME π
IO::File::WithPath β it's literally an IO::File extension that keeps the pathname π«Ά no cap, it just remembers where it came from.
(also hi bestie, this page lives in the User Contributed Perl Documentation section, filed under IO::Fi...thPath(3pm) π )
β¨ 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
okay so like β you make the object, you ask it for path, and boom, it tells you the path. and getline? that's just your regular IO::File behavior showing up to the party. iconic. π
π¦ DESCRIPTION π¦
IO::File::WithPath is a Perl module that extends IO::File so it can keep track of the absolute path name. that's the whole vibe. it's an IO::File that remembers. main character energy fr fr π
πΈ METHODS πΈ
newβ creates the object from a file-path, just likeIO::File->new()does. BUT β and this is the important part, don't skip it β the file-path does not includeMODE. like, for example,'/path/to/file'. that's it, that's the arg πpathβ gives you the file-path. that's literally it, that's the method, obsessed π
π AUTHOR π
Masahiro Chiba <nihen@megabbs.com> β the genius behind all this β¨
π THANKS π
shoutout to miyagawa and nothingmuch π«Ά absolute legends, we love to see it.
π LICENSE π
this library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay, open source bestie π
π COPYRIGHT π
Copyright (c) 2009-2011 Masahiro Chiba <nihen@megabbs.com> π
and that's the whole page bestie!! generated by perl v5.26.1 on 2018-04-14, straight out of the IO::Fi...thPath(3pm) files. go forth and keep track of your paths πβ¨π¦ periodt.
π¦ where this page comes from
- debian bookworm: libio-file-withpath-perl 0.09-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libio-file-withpath-perl 0.09-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libio-file-withpath-perl 0.09-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libio-file-withpath-perl 0.09-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms