in reply to Invoke unix program from perl program
Just put the parameters behind the call:
system("program.sh $param1 4 $param2");
or, if you want to get the output of the program into your perl script:
my @result= `program.sh $param1 4 $param2`; #backticks or open($f,'-|',"program.sh $param1 4 $param2"); while (my $result= <$f>) { ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Invoke unix program from perl program
by JavaFan (Canon) on Jan 08, 2010 at 11:01 UTC |