Am trying to get some Perl code into a template (to do with presentation ;) )
How can I do the following in TT without using a FOREACH? Just pointing me to
the right place in the docs would be great. Sadly, TT doesn't have map (or at
least I can't find it in vmethods etc.)
Perl
$result = join( ',', map{ $my_hash->{A_KEY}->{$_} }
grep{ ! /some_string/ }
sort keys %{$my_hash->{A_KEY}}
);
TIA
-Ants
Disclaimer: Technically, I'm always wrong!!
---------------------------------
Yahoo! Answers - Get better answers from someone who knows. Tryit now._______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates