in reply to Array for system() call

Not directly answering your question, but you can get the effect of redirection using pipes (supposing you read in the contents of out.file somewhere later in your program). Works like this:

$Call = 'gawk -f test.gawk test.file'; open (CMD, "$Call |") or die "Error in command $Call: $!\n"; while (<CMD>) { #process output records }

pike