Roderick A. Anderson wrote:
> did I get the { \%User, list => [EMAIL PROTECTED] } right?
> [snip]
> $ltr->process( 'report.tt',
> { \%User, mlist => [EMAIL PROTECTED] } ,
> \$msgbody );
By backslashing %User, you've created a funky hash that has variable
references as keys, and might look something like this:
$vars = {
'HASH(0x8105964)' => 'mlist',
'ARRAY(0x94299cc)' => undef
};
If you want to include all key/value pairs of %User as "global" vars in
your TT doc, try this:
$ltr->process( 'report.tt',
{ %User, mlist => [EMAIL PROTECTED] } ,
\$msgbody );
The hash will automatically be expanded and you'll have the right number
(even!) of elements.
Hope that helps,
Jason
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates