in reply to Re: how to pass hash to perl template toolkit
in thread how to pass hash to perl template toolkit

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?

Replies are listed 'Best First'.
Re^3: how to pass hash to perl template toolkit
by beech (Parson) on Nov 28, 2015 at 09:38 UTC