[Templates] only getting one error in a loop
Robert Hicks
sigzero at gmail.com
Thu May 15 00:05:11 BST 2008
Basically:
sub one()
That builds two templates out an HTML and TEXT one.
sub two()
That does a bunch of sql...passes some args to sub one() like:
one (
one => $var1,
two => $var2,
);
Because I am building 2 types of emails...I have 2 $template->process
commands and because it is in a loop and I have 5 users, I get five
error message when a template is incorrect.
What I would like to do is catch the errors and only pass the unique
ones to STDERR.
I am not sure if that is enough to go on.
Robert
More information about the templates
mailing list