Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: use variable from main file in a 'require'd file?

by ioannis (Priest)
on Jun 12, 2006 at 18:06 UTC ( #554862=note: print w/ replies, xml ) Need Help??


in reply to use variable from main file in a 'require'd file?

There are more solutions. But let's remember the root of our troubles: the scope of the my operator does not extend to other files; it is not (directly) visible by 'subs.pl', regardless if the file is loaded dynamically with require or compiled early with use.


Comment on Re: use variable from main file in a 'require'd file?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2014-08-02 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (54 votes), past polls