The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Text::Template::Simple::Util - Utility functions

SYNOPSIS

TODO

DESCRIPTION

This document describes version 0.62_10 of Text::Template::Simple::Util released on 9 April 2009.

WARNING: This version of the module is part of a developer (beta) release of the distribution and it is not suitable for production use.

Contains utility functions for Text::Template::Simple.

FUNCTIONS

DEBUG

Returns the debug status.

DIGEST

Returns the digester object.

binary_mode FH, LAYER

Sets the I/O layer of FH in moern perls, only sets binmode on FH otherwise.

fatal ID [, PARAMS]

Internal method.

isaref THING

Returns true if THING is an ARRAY.

ishref THING

Returns true if THING is a HASH.

iscref THING

Returns true if THING is a CODE.

trim STRING

Returns the trimmed version of the STRING.

ltrim STRING

Returns the left trimmed version of the STRING.

rtrim STRING

Returns the right trimmed version of the STRING.

escape CHAR, STRING

Escapes all occurrances of CHAR in STRING with backslashes.

OVERRIDABLE FUNCTIONS

LOG

If debugging mode is enabled in Text::Template::Simple, all debugging messages will be captured by this function and will be printed to STDERR.

If a sub named Text::Template::Simple::Util::MYLOG is defined, then all calls to LOG will be redirected to this sub. If you want to save the debugging messages to a file or to a database, you must define the MYLOG sub.

AUTHOR

Burak Gürsoy, <burak@cpan.org>

COPYRIGHT

Copyright 2004-2008 Burak Gürsoy. All rights reserved.

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.