http://www.perlmonks.org?node_id=282979


in reply to Parse output

You may need to do a chomp to delete trailing newlines on the list entries coming from @files.
HTH,
Chris