in reply to Re: Re: Passing Array to seperate file
in thread Passing Array to seperate file
# controlcript open WORKER, "| workerscript.pl" or die; print WORKER "$_\n" for @combined; close WORKER; # This is the worker script, entitled workerscript.pl my @combined; while ( <STDIN> ) { push @combined, $_; } chomp @combined;
Or just slurp in the worker script...
my @combined = <STDIN>; chomp @combined;
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Passing Array to seperate file
by scottness (Initiate) on Mar 01, 2004 at 16:49 UTC |