"be consistent" | |
PerlMonks |
Re^4: creating HTML tableby Cody Pendant (Prior) |
on Jul 16, 2007 at 10:29 UTC ( [id://626809]=note: print w/replies, xml ) | Need Help?? |
You are making things really really difficult which HTML::Template can make simple.
You don't need any of that <CSTM> nonsense, or the filter callback. Here's a template which does all you want:
You put the odd-even logic inside the opening TR tag and HTML::Template does the rest. The source code's going to look a bit weird but the browser doesn't care. Nobody says perl looks like line-noise any more
In Section
Seekers of Perl Wisdom
|
|