Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: File::Find exit

by l2kashe (Deacon)
on Oct 29, 2003 at 17:17 UTC ( #303056=note: print w/ replies, xml ) Need Help??


in reply to File::Find exit

I am assuming you are talking about the files in said dir being sorted alphabetically. With that you could alter the push to something along the lines of

Update: I've been thinking about my solution, and I think the latter one is more appropriate, as opposed to the first. Im sure a better search criterion to File::Find would be more efficient way to go about doing this.

push(@nod, $_) if m/^[a-cA-C]/;

return unless m/^[a-cA-C]/; push(@nod, $_);

use perl;


Comment on Re: File::Find exit
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2015-07-07 00:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (85 votes), past polls