Skeeve has asked for the wisdom of the Perl Monks concerning the following question:
Hello fellow monks!
Update 2:Forget about the question... The problem was not the SWITCH directive but the "$report_type" instead of "report_type"...
Recently I switched to Template Toolkit 2 for creating XML from spreadsheet data. Today I noticed that the SWITCH directive didn't work as I expected. I wrote
SWITCH $report_typeThis didn't work because the correct syntax is
So now I'm wondering what the correct way it might be, hadn't I "DATACENTER" but "DATA CENTER"...
Does anyone of you know a solution?
UPDATE: I just noticed that the statement above is wrong and I have absolutely no clue how to correctly write a SWITCH directive :-(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: TT2 SWITCH - how to do it
by Anonymous Monk on Jan 16, 2006 at 21:16 UTC |