Text::T...ple::IO(3)

πŸ“¦
version 0.91 Β· 2 versions
, in fedora 43

πŸ’– NAME πŸ’–

ok so bestie, gather round, because this one is literally just the little I/O goblin that lives inside the bigger thing: Text::Template::Simple::IO ✨

(it also goes by its fancy full name up top: Text::T...ple::IO(3) β€” that's from the User Contributed Perl Documentation collection, iykyk πŸŽ€)


🌸 VERSION 🌸

version 0.91 β€” she's vintage, she's stable, she's serving πŸ’…


✨ SYNOPSIS ✨

   TODO

not me putting TODO in the synopsis πŸ’€ but that's literally what the page says, so here it is, untouched. iconic behavior, honestly.


πŸ¦‹ DESCRIPTION πŸ¦‹

   TODO

yeah. same energy. the description is a TODO. no cap. we move on 🫢


πŸŽ€ NAME πŸŽ€

surprise, bestie β€” there's a second NAME section and it's the one that actually spills the tea:

Text::Template::Simple::IO β€” I/O methods. that's it, that's the whole thing. it's the I/O layer of the crew. 🌈


πŸ’… METHODS πŸ’…

⭐ new IO_LAYER

the constructor, the main character entrance. takes an I/O layer name as its parameter and hands you back a fresh object. periodt. πŸ‘‘

🌸 layer FILE_HANDLE

sets the I/O layer on the file handle you hand it β€” but only if there's actually a layer to set and your "perl" version is greater than or equal to 5.8. no perl 5.8, no layer. simple as that. πŸ“

🧚 slurp FILE_PATH

gives you back the contents of the file at the path you passed in, as a string. that's the slurp. drink it up. πŸ₯€

πŸ’œ validate TYPE, PATH

here's the vibe check: "TYPE" has to be either dir or file. if the path checks out, you get the corrected path back. if it doesn't, you get undef. and honestly? undef is the "not you, bestie" of Perl. 😭

πŸ”₯ is_dir THING

tests whether THING is a directory. yes/no, that's the whole job. πŸ“

🌈 is_file THING

tests whether THING is a file. same energy, different target. πŸ“„

πŸ‘‘ file_exists THING

ok this one does extra. it tests whether THING is a file, and it also searches all the "include paths", and if the file exists it hands you back the full path to it. she went the whole way. ate. πŸ”₯


🫢 AUTHOR 🫢

Burak Gursoy <burak@cpan.org> β€” the legend who wrote all this. respect. πŸ’–


This software is copyright (c) 2004 by Burak Gursoy.

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


fr fr, don't skip the license bit β€” free software is a gift, treat it like one 🎁

ok that's the whole page, bestie, you're officially fluent πŸ’…βœ¨

this was perl v5.42.0, dated 2025-07-25, straight out of Text::T...ple::IO(3) β€” mwah, go slay πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from