Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: use file::find to find files modified in last 5 days

by talexb (Canon)
on Feb 23, 2012 at 17:37 UTC ( #955790=note: print w/ replies, xml ) Need Help??


in reply to Re^2: use file::find to find files modified in last 5 days
in thread use file::find to find files modified in last 5 days

As brother thargas has explained, you need to look at the documentation. Type perldoc File::Find and you'll be presented with an example in the Synopsis section that should answer your question:

use File::Find; find(\&wanted, @directories_to_search); sub wanted { ... }
You pass File::Find::find two parameters: a reference to a function that will be called when a matching file is found, and a list of directories to be searched. And it should Just Work(tm).

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds


Comment on Re^3: use file::find to find files modified in last 5 days
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2015-07-07 06:52 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 (87 votes), past polls