in reply to Mailing Using Perl
which would be inefficient even in a shell script. Maybe consider globbing (filename expansion/wildcards) instead?@files = `ls|grep $fileName`;
This is assuming that $fileName does not contain an RE.@files = glob("*$fileName*");
|
|---|