I am new to PERL so I still have much to learn.
I am trying something simple like calling a second PERL script from another script. I was pointed in the direction of the DO instruction. It works fine except when I dont pass arguments to the called script or when I do not use scalers in the DO statement. But once these are added, I never get the called script.
Here is the one that works fine:
do "called_script.pl";
And this is the one I need that fails consistantly:
$path="e:\srvapps\scripts";
$server="Server201";
do "$path\called_script.pl -M $server";
I have tried so many different combos of this and just cannot get it to run. Anyone know of a good manual that explains this type of syntax issue ? Any help would be great with the immediate problem.
Thanks.
LJS
I am trying something simple like calling a second PERL script from another script. I was pointed in the direction of the DO instruction. It works fine except when I dont pass arguments to the called script or when I do not use scalers in the DO statement. But once these are added, I never get the called script.
Here is the one that works fine:
do "called_script.pl";
And this is the one I need that fails consistantly:
$path="e:\srvapps\scripts";
$server="Server201";
do "$path\called_script.pl -M $server";
I have tried so many different combos of this and just cannot get it to run. Anyone know of a good manual that explains this type of syntax issue ? Any help would be great with the immediate problem.
Thanks.
LJS