The stupid question is the question not asked | |
PerlMonks |
Re^2: how to pass hash to perl template toolkitby nikmit (Sexton) |
on Nov 28, 2015 at 09:12 UTC ( [id://1148746]=note: print w/replies, xml ) | Need Help?? |
Ten years after the reply by johnnywang, I read it and found it rather useful... Prepending the variable name in add.$element.type with the dollar sign makes it work - in this piece of code and in mine. Yet according to the documentation it is ignored unless INTERPOLATE=1 is set, and the colour coding from vim-perl suggests the same.
I doubt this is that badly documented, what am I missing? Why is the '$' sign vital in there when it (seemingly) shouldn't be?
In Section
Seekers of Perl Wisdom
|
|