We don't bite newbies here... much | |
PerlMonks |
Re: Template toolkit Adding Values to Variableby CountZero (Bishop) |
on Mar 01, 2010 at 12:22 UTC ( [id://825892]=note: print w/replies, xml ) | Need Help?? |
Could it be that there is something wrong with the Perl-script that stuffs data in the TT-variables? Have you checked what is in information.QTY and information.PRICE? Or perhaps shopping is zero or empty or undef and the loop doesn't run? Does TT know the += operator (as in [% totalprice += ff %]? Have you tried [% totalprice = totalprice + ff %]? (Sorry, I cannot check on the computer I am writing this on). Update: Added question on += operator CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
In Section
Seekers of Perl Wisdom
|
|