Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://752465]
help
Chatterbox?
[beech]: nobliest nodes
[Discipulus]: ah no newest nodes! ask something
[beech]: why is my butt itchy
Discipulus many countries without bidet.. is a big problem!
[beech]: who told you i call my butt france?

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2016-12-09 09:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (150 votes). Check out past polls.