Text::T...e::Util(3)

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

πŸ’– 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 🫢


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