jaa has asked for the wisdom of the Perl Monks concerning the following question:
I am a TT newbie, so apologies in advance for what may be obvious to you!
This TT snippet works:
[% # perl - $row->{action} = [qw( a b c )]; dumper.dump( row.action ) %]
But this fails, I assume because the underscore is the TT op for concatination.
How do I access values in TT from a hash where the hashkey starts with underscore?[% # perl - $row->{_action} = [qw( a b c )]; dumper.dump( row._action ) %]
Many thanks,
Jeff
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Template::Toolkit - accessing hashes when keys starts with underscore?
by olus (Curate) on May 14, 2008 at 14:18 UTC | |
|
Re: Template::Toolkit - accessing hashes when keys starts with underscore?
by jaa (Friar) on May 14, 2008 at 14:15 UTC |