So in a nutshell:
Script 1 executes script 2 and passes two pieces of information to it? Ok, cutting out the noise somewhat you have something like this:
script 1:
my $script2 = ...; # including dir as required
my $param1 = ...;
my $param2 = ...;
system("$script2 \"$param1\" \"$param2\"");
script 2:
my $param1 = shift; #Pull off the first command line argument
my $param2 = shift; #Pull off the second command line argument
#do stuff with $param1 and $param2
Perl is Huffman encoded by design.
|