ajguitarmaniac has asked for the wisdom of the Perl Monks concerning the following question:
Namaste Monks! This is somewhat like an extension to a question that I had posted earlier Array comparison using perl. In my previous question I'd used arrays
and sought help to run a comparison between the two. But now my requirement has changed in a way that @arr1 is in one script say script1.pl and @arr2 in another script say script2.pl, both scripts found in the same directory. I need to run the array comparison procedure (which was the solution to my former question) in script2.pl and for this to occur @arr1 from script1.pl must be called into script2.pl. It must be noted that the arrays do not contain predefined values as shown. Please help me out with this wise Monks! Thanks!my @arr1 = ('1','2','3','4','5','6','7','8','9'); my @arr2 = ('1','4','5','9','7');
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Passing values between different scripts
by Corion (Patriarch) on Dec 28, 2010 at 15:38 UTC | |
by ajguitarmaniac (Sexton) on Dec 28, 2010 at 15:45 UTC | |
Re: Passing values between different scripts
by fisher (Priest) on Dec 28, 2010 at 15:42 UTC | |
by ajguitarmaniac (Sexton) on Dec 28, 2010 at 15:50 UTC | |
Re: Passing values between different scripts
by JavaFan (Canon) on Dec 28, 2010 at 16:05 UTC | |
Re: Passing values between different scripts
by jethro (Monsignor) on Dec 28, 2010 at 15:40 UTC | |
by ajguitarmaniac (Sexton) on Dec 28, 2010 at 15:52 UTC |
Back to
Seekers of Perl Wisdom