When I've had a similar issue I've had to use a tmp variable:

[%
tmp = 'CD:X';
output.$tmp.closeTime

hth, jamie


fdsfds fdsfddsf wrote:
Hello,

I'm parsing an XML response from a webservice, sending
it through XML::Simple to produce a representation of
the XML in a Perl data structure. The resulting hash I
get sometimes includes keys with a colon in them. When
I wish to use a value in my template, I get an
unexpected token error - i.e. [% output.CD:X.closeTime
%] - I've attempted to surround the "CD:X" part with
various quotes, but nothing seems to work. Is there
anything I can do, short of pre-processing the XML
response?

I'd appreciate anything you can suggest,
-joss


___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates




_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to