Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Use a Variable in a Separate Perl Script

by patcat88 (Deacon)
on Jun 07, 2012 at 21:01 UTC ( #975043=note: print w/ replies, xml ) Need Help??


in reply to Use a Variable in a Separate Perl Script

Use require and package name spaces. Your 2nd script becomes an library that is used/loaded by the first.


Comment on Re: Use a Variable in a Separate Perl Script

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2015-09-01 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (366 votes), past polls