use strict; use warnings; while () { #fix the file name here print; } __DATA__ File1^test File2!test File3-test File2\test