Text::T...e::Util(3)
π Text::Template::Simple::Util π
ok so bestie, welcome to the manual page for Text::Template::Simple::Util, which lives in the Text::T...e::Util(3) section of your friendly neighborhood User Contributed Perl Documentation. pull up a chair π«Ά
β¨ VERSION β¨
version 0.91 β that's the one, no cap
πΈ SYNOPSIS πΈ
TODO
yes. literally just TODO. the author left us on read and honestly? iconic. moving on π
π¦ DESCRIPTION π¦
so basically this module is where all the little utility functions for Text::Template::Simple hang out. it's the backstage crew, the glam squad, the ones doing the real work behind the curtain β¨
π NAME π
Text::Template::Simple::Util β Utility functions. that's the whole vibe. it does utility stuff. it's the utility-est π
π₯ FUNCTIONS π₯
π DEBUG
hands you back the debug status. that's it, that's the function.
π DIGEST
hands you back the "digester" object. go on, take it, it's yours.
π binary_mode FILE_HANDLE, LAYER
sets the I/O layer of FILE_HANDLE β but only on the modern "perls". on anything older it just sets "binmode" on FILE_HANDLE instead. choose your fighter, your perl decides for you π«
π L TYPE, ID [, PARAMETERS]
Internal method. not for you bestie, it's private business π
π fatal ID [, PARAMETERS]
Also an internal method. same energy, also not your business π
π "trim STRING"
returns the trimmed version of "STRING". whitespace? gone. evicted.
π "ltrim STRING"
returns the left trimmed version of "STRING". only the left side gets the treatment, the right side stays unbothered.
π "rtrim STRING"
returns the right trimmed version of "STRING". mirror image, same energy β¨
π escape CHAR, STRING
escapes every single occurrence of "CHAR" inside "STRING" β with backslashes. all of them. every last one. no cap πͺ
π visualize_whitespace STRING
swaps out the white space in "STRING" for visual representations, so you can actually see what's lurking in there π
π OVERRIDABLE FUNCTIONS π
π LOG
if debugging mode is turned on in Text::Template::Simple, then all the debugging messages get captured by this function and printed out to "STDERR". that's the default behaviour, that's what she does π
but wait β there's more. if a sub named Text::Template::Simple::Util::MYLOG is defined, then every single call to LOG gets redirected to that sub instead. so if you're trying to save your debugging messages to a file, or into a database, you must define the MYLOG sub. that's the assignment, bestie, it's on you π«‘
π« AUTHOR π«
Burak Gursoy <burak@cpan.org> β the mastermind, the moment, the author π«Ά
β 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.
ok that's the whole page, go forth and template responsibly π
and that's a wrap, bestie β this lil page came to you courtesy of perl v5.42.0, dated 2025-07-25, filed under Text::T...e::Util(3). mwah πβ¨
π¦ 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