Text::T...ple::IO(3)
π 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. π
π COPYRIGHT AND LICENSE π
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
- fedora 43: perl-Text-Template-Simple 0.91-22.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms