in reply to Re^2: script should wait for another script to complete
in thread script should wait for another script to complete
Why not a loop rather than a queue ?
#!perl use strict; my @param = ( [1,2],['a','b'],['x','y','z'] ); for (@param){ local @ARGV = @$_; do "myscript.pl"; }
poj#!perl # myscript.pl use strict; print "Running myscript.pl with @ARGV \n"; sleep 2; print "Finished\n";
|
|---|