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

Re: namespaces and variable initilization with require 'file'

by broomduster (Priest)
on Oct 01, 2008 at 15:46 UTC ( #714816=note: print w/replies, xml ) Need Help??


in reply to namespaces and variable initilization with require 'file'

As an alternative to $main::a (noted by JavaFan), you can declare using our.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://714816]
help
Chatterbox?
[ambrus]: ARGH! my code is full of stupid undocumented kludges. I don't understand why it works this way.
[ambrus]: I have to untangle this mess.

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2017-11-24 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (349 votes). Check out past polls.

    Notices?