In perl one accesses a value in a hash reference like so:

$a->{'foo'}.

For the Template Toolkit that would be written like so:

a.foo

However this seems to place the restriction that keys must follow the
naming rules for variables (alphanumeric + _, leading char alpha).

I'm running into many situations where the key contains other characters
such as " " or "-". What is the best way to handle these? I hope it isn't:

bar = "key with spaces-n-dashes"
a.$bar

Thanks,

Mark

-- 
Mark Wagner <[EMAIL PROTECTED]>
System Administrator, UW Medicine IT Services
206-616-6119

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

Reply via email to