Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Use a Variable in a Separate Perl Scriptby patcat88 (Deacon) |
on Jun 07, 2012 at 21:01 UTC ( [id://975043]=note: print w/replies, xml ) | Need Help?? |
Use require and package name spaces. Your 2nd script becomes an library that is used/loaded by the first.
In Section
Seekers of Perl Wisdom
|
|