Poet::Util::File(3pm)

πŸ“¦
version 0.16 Β· 2 versions
  • 0.16 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.16 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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. 😭
  • abs2rel canonpath catdir catfile rel2abs β€” 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. 🫢


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