Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Quickly Find Files with Wildcard?by Albannach (Monsignor) |
on Mar 23, 2009 at 01:14 UTC ( [id://752465]=note: print w/replies, xml ) | Need Help?? |
I would try using substr instead of invoking a full regex since your match string is a constant.
Secondly, I hope you drop out of your foreach loop once the file you want has been found (unless you expect more than one match that is), otherwise you will continue you expensive test for nothing.
Hope this helps!
--
In Section
Seekers of Perl Wisdom
|
|