Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Persistant variables in TT2

by Anonymous Monk
on May 10, 2005 at 14:51 UTC ( #455598=note: print w/replies, xml ) Need Help??

in reply to Persistant variables in TT2

perldoc Template::Manual::Variables
Local and Global Variables
Any simple variables that you create, or any changes you make to existing variables, will only persist while the template is being processed. The top-level variable hash is copied before processing begins and any changes to variables are made in this copy, leaving the original intact. The same thing happens when you INCLUDE another template.
So you can't do that as-is, but you could subclass Template::Stash or pull other similar dirty tricks :)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2019-10-22 21:03 GMT
Find Nodes?
    Voting Booth?