Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Is there a way to set max results on File::Find::Rule?

by runrig (Abbot)
on Dec 20, 2007 at 02:01 UTC ( [id://658041]=note: print w/replies, xml ) Need Help??


in reply to Is there a way to set max results on File::Find::Rule?

It sounds like you want something more like File::Find::Object (update: or File::Next), which has an iterator interface, so you can stop fetching files whenever you want to. I've never used this module so I can't comment on it much. The docs also mention other iterator-based modules, which I haven't used either.

Alternatively, you could die in File::Find when you're done fetching (wrapping find() in an eval), but then you couldn't continue.

  • Comment on Re: Is there a way to set max results on File::Find::Rule?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2024-04-23 10:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found