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

The grep function in Perl is not the same as the Unix utility grep. Your best bet is to open each file in @cgafiles for read and do a pattern match on each line:
foreach my $item (@cqafiles) { open CQAFILE, "<$item"; while (<CQAFILE>) { next unless /^CQA_STATUS,/; print FILE $'; } }
-imran