IO::Fi...thPath(3pm)

πŸ“¦
version 0.09 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– 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 like IO::File->new() does. BUT β€” and this is the important part, don't skip it β€” the file-path does not include MODE. 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 (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