Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: blessing a hash ref?

by tedrek (Pilgrim)
on Mar 19, 2004 at 01:00 UTC ( #337856=note: print w/replies, xml ) Need Help??


in reply to blessing a hash ref?

When you bless the new hash into Site::Cfg you give it a reference to the package variable %templates. This is because %templates hasn't yet been declared lexical. To fix it move my %templates... above the sub. use strict would have caught it.

I tried to swear at perl and it compiled!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2021-09-19 07:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?