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