Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by thargas (Deacon)
on Feb 22, 2012 at 13:10 UTC ( #955517=note: print w/ replies, xml ) Need Help??


in reply to use file::find to find files modified in last 5 days

If you're going to use perl, you really need to learn about perldoc. The most important command you need to start with is perldoc perltoc which asks perldoc to show you the perl TOC (Table Of Contents) which lists all the other things you can ask perldoc about. You can also go to perlfunc if you'd rather have the info on a web-page.

Do perldoc perlfunc and look for "file test". This will show you all the various file testing operators, like the -T you're already using and the -M you want here.


Comment on Re: use file::find to find files modified in last 5 days
Select or Download Code
Re^2: use file::find to find files modified in last 5 days
by mikesolomon (Novice) on Feb 22, 2012 at 13:32 UTC

    Thanks

    don't know why but didn't think of a simple -M test

    now working

    return unless -M $file < $days;
Re^2: use file::find to find files modified in last 5 days
by tchrist (Pilgrim) on Feb 23, 2012 at 23:10 UTC
    If you're going to use perl, you really need to learn about perldoc
    How could you tell he was on a Microsoft system? Because he said file::find in his title?
      whiskey - tango - foxtrot.

      How did "Microsoft" pop into your mind, based on thargas's words?
        I don't understand where the Microsoft came from either. I assure you that I wasn't even thinking of Microsoft when I wrote that.
        whiskey - tango - foxtrot.

        How did "Microsoft" pop into your mind, based on thargas's words?

        Because he suggested perldoc, of course. I was trying to figure out why he guessed the fellow was on Microsoft, and I thought he guessed it because of the case-insensitivity of the package file. But Macs often run their file systems in case-ignorant mode, too, so thatís no real proof. Might be evidence, though, which is why I asked.
Re^2: use file::find to find files modified in last 5 days
by runrig (Abbot) on Feb 24, 2012 at 01:17 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (15)
As of 2014-12-19 10:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (78 votes), past polls