in reply to Re: Re: Re: IO::Select - is it right for this?
in thread IO::Select - is it right for this?
can be simplified toelse { $call = <Something I make here>; # sorry, can't show that open (OUT, "| $call"); close (OUT); exit; }
But you should better consider using @call, putting each option and parameter of the call into it's own @call element and using the complete path for the first parameter, the program's name.else { $call = <Something I make here>; # sorry, can't show that exec $call || die "Something went wrong!"; }
use something like this:$call= "myperlscript -param1 $var1 -param2 $var2"; exec $call;
@call= ('/my/home/dir/myperlscript','-param1',$var1,'-param2',$var2); exec @call;
|
|---|