in reply to Re^2: Resseting perl -M file mod after xx minutes
in thread Resseting perl -M file mod after xx minutes

What I mean is: all directories you run this script on that only contains one directory entry (besides current and parent dir) will not be processed.

Sorry for being imprecise, but I believe my comment still applies. (Updated. Sigh!)

  • Comment on Re^3: Resseting perl -M file mod after xx minutes

Replies are listed 'Best First'.
Re^4: Resseting perl -M file mod after xx minutes
by ikegami (Patriarch) on Jul 10, 2009 at 21:43 UTC
    It will be processed, just 10 seconds later (or some multiple thereof). I don't know what point you are trying to make.

      If the goal is to process any files that are older than a given value, even if there is just one file, then the script doesn't work as it should.

        You presume that "as it should" means there isn't a minimum number of files required. I don't see any indication your assumption is true — in fact, it seems to contradict the printed message — but if it is,
        if (scalar(@Files) > 1) {
        or
        if (@Files > 1) {
        should be replaced with
        if (scalar(@Files) > 0) {
        or
        if (@Files > 0) {
        or
        if (@Files) {