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

Re: Template::Toolkit - accessing hashes when keys starts with underscore?

by olus (Curate)
on May 14, 2008 at 14:18 UTC ( [id://686526]=note: print w/replies, xml ) Need Help??


in reply to Template::Toolkit - accessing hashes when keys starts with underscore?

The docs say:

Any key in a hash which starts with a '_' or '.' character will be considered private and cannot be evaluated or updated from within a template.

update: but

You can disable this feature by setting the $Template::Stash::PRIVATE package variable to a false value.
$Template::Stash::PRIVATE = undef;   # now you can thing._private

  • Comment on Re: Template::Toolkit - accessing hashes when keys starts with underscore?
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-25 19:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found