print "$_\n" for @foundfiles; print MYOUTPUT "$_\n" for @foundfiles;