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

starface245 has asked for the wisdom of the Perl Monks concerning the following question:

#!/usr/bin/perl @files = glob("*.msg"); foreach $file(@files) { $cmd = "perl script.pl < $file"; system($cmd); }
I want to open all .msg files cause I have thousands. I get error "The system cannot find the file specified"