# 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 ( ) { push @combined, $_; } chomp @combined; #### my @combined = ; chomp @combined;