http://www.perlmonks.org?node_id=955517


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.

Replies are listed 'Best First'.
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 runrig (Abbot) on Feb 24, 2012 at 01:17 UTC
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.