Mike Eggleston <[EMAIL PROTECTED]> said something to this effect on 10/30/2001:
> I have a need to use Digest::MD5 (actually md5_hex) in my code.
> How do I pull in the md5_hext function into my template inside
> the [% ... %] tags?
I just added similar functionality to my mod_perl handler; I
added a virtual method to $Template::Stash::SCALAR_OPS from
within my Template::Service subclass:
use Digest::MD5 ();
$Template::Stash::SCALAR_OPS->{'md5_hex'} = sub { Digest::MD5::md5_hex($_[0]) };
Works like the proverbial charm.
(darren)
--
People who make peaceful change impossible make violent change
inevitable.