Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Quickly Find Files with Wildcard?

by Albannach (Prior)
on Mar 23, 2009 at 01:14 UTC ( #752465=note: print w/ replies, xml ) Need Help??

in reply to Quickly Find Files with Wildcard?

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!

I'd like to be able to assign to an luser

Comment on Re: Quickly Find Files with Wildcard?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://752465]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2015-11-27 05:01 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (718 votes), past polls