How to run a perl script from another passing parameters?
I’m trying to use a solution found in a internet post that i can’t find anymore.
It was something like:
do 'script.cgi param1 param2';
And in the other script I’m using simply the shift to get those parameters:
#Parameters
my $param1= shift;
my $param2= shift;
I saw people using system with args, but is it better for real?
If not, how can I fix the solution with ‘do EXPR’?
Thanks in advance.
Oh well, I solved doing:
It works. If anybody has any better suggestions feel free to tell them to me.
Meantime i’m using this solution.