|Perl: the Markov chain saw|
Re: Using wildcards to open files.by kcott (Canon)
|on Oct 25, 2012 at 16:41 UTC||Need Help??|
That's not really enough information to provide a definitive answer.
Do you get that error once or multiple times? Is script.pl in the same directory as the *.msg files or accessible via $PATH? Have you tried anything to track down why the file(s) can't be found? Is the error being emitted by the code you posted or script.pl? Can you show us the code in script.pl?
You could try something like the following (redirecting the output to a temporary file and searching for No such file or directory).
With a script.pl like this:
This code works fine for me:
But I also get the same output with a single line:
Consider whether you really need thousands of shell and Perl processes if a single Perl process would do the same job.