in reply to extract a single line from multiple files in a folder.

You could always change the PERL grep for the system grep by using the backticks operator as follows (beginning of your code omitted):
... foreach my $item (@cqafiles) { my $status_line = `grep '^CQA_STATUS' $item`; print FILE "$status_line\n"; } close(FILE) || die "can't close$cqapath/CQA_STATUS after writing\n +";