Perhaps this is a stupid question, but I can't seem to find the answer in TFM.
How do you look up a hash value whose key has a space in it?
I tried:
[% foo."bar baz" %] and [% foo.${bar baz} %]
but each of these results in a syntax error.
I can use a workaround:
[% SET key = "bar baz" %]
[% foo.$key %]
But I'm sure there must be a better way.
Mike
- [Templates] Hash key with whitespace Mike Friedman
- Re: [Templates] Hash key with whitespace Josh Rosenbaum
- Re: [Templates] Hash key with whitespace Paul Seamons
- Re: Re: [Templates] Hash key with whitespace Mike Friedman
