Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: how to pass hash to perl template toolkit

by nikmit (Sexton)
on Nov 28, 2015 at 09:12 UTC ( [id://1148746]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1148746]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found