Poet::Util::File(3pm)
π Poet::Util::File π
okay bestie, you found it β this is the manual page for Poet::Util::File, part of the User Contributed Perl Documentation collection. it's a lil grab-bag of file utilities, and honestly? it ate. let's get into it π«Ά
β¨ NAME β¨
Poet::Util::File β file utilities. that's it, that's the whole vibe. it's giving "helper functions so you don't have to remember which CPAN module does what." π
πΈ SYNOPSIS πΈ
here's the tea on how you actually pull these in. three flavors, depending on where you're at:
# In a script...
use Poet::Script qw(:file);
# In a module...
use Poet qw(:file);
# In a component...
<%class>
use Poet qw(:file);
</%class>
like, qw(:file) is the magic word that unlocks the whole bundle. slay. β¨
π¦ DESCRIPTION π¦
so this group of utilities is literally just a curated squad of file-handling helpers, re-exported so you don't have to go hunting. here's who's in the group chat:
basename,dirnameβ these two are on loan from File::Basename. classic icons. πmkpath,make_path,rmtree,remove_treeβ straight out of File::Path. directory-making and directory-deleting, no cap. (yes, both the old-school names and the shiny new ones. they're all here. periodt.)read_file,write_file,read_dirβ courtesy of File::Slurp. reading and writing files without the suffering. πabs2relcanonpathcatdircatfilerel2absβ the File::Spec::Functions crew. path math, but make it portable. π§
fr fr, this is a re-export situation β every one of these is a real function living in its real home module, just handed to you through Poet so your code stays cute and short.
π SEE ALSO π
Poetβ the main character, obviously. go read that one too. π
π AUTHOR π
Jonathan Swartz <swartz@pobox.com> β wrote this whole thing. legend behavior. π«Ά
β COPYRIGHT AND LICENSE β
This software is copyright (c) 2012 by Jonathan Swartz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go wild, respectfully. π
and that's a wrap, bestie!! this page came to you from perl v5.34.0, dated 2022-06-18. mwah π β¨
π¦ where this page comes from
- debian bookworm: libpoet-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libpoet-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libpoet-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpoet-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpoet-perl 0.16-3 Β· 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