Hello,
Someone here recently found that we mysteriously lost our "e"
variable when TRY/CATCH failed. In the Template::Directive
source it looks like "e" is an alias for "error":
# TRY
$OUTPUT do {
my \$output = '';
my (\$_tt_error, \$_tt_handler);
eval {
$block
};
if (\$@) {
\$_tt_error = \$context->catch(\$@, \\\$output);
die \$_tt_error if \$_tt_error->type =~ /^return|stop\$/;
\$stash->set('error', \$_tt_error);
\$stash->set('e', \$_tt_error);
[..]
I couldn't find "e" documented anywhere, but it's also difficult
to search for. Is it documented? Are there any other variables like this?
Thanks,
Brad
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates