Geeze, gmail got me again.

On Thu, Oct 22, 2009 at 10:20 AM, Sean McAfee <[email protected]> wrote:

>
>
> You're *not* able to do that.  Template::Document localizes away whatever
> warning hook the main application might have installed.
>

 TT $VERSION = '2.20';


use strict;
use warnings;
use Template;

my $tt = Template->new;
my $template = '[% 1 + "" %]';

$SIG{__WARN__} = sub { warn "[ALERT!!! @_]\n" };

$tt->process( \$template );

:!perl /home/moseley/warn.pl
[ALERT!!! Argument "" isn't numeric in addition (+) at input text line 1.
]
1



-- 
Bill Moseley
[email protected]
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to