Help for this page

Select Code to Download


  1. or download this
    use strict;
    
  2. or download this
    use warnings;  # as well?
    
  3. or download this
    if ($ARGV[0] eq "") { $ARGV[0]="."; }
    
  4. or download this
    @ARGV = '.' unless @ARGV;
    
  5. or download this
    my @file_list;
    find ( sub {
    ...
        push (@file_list, $file) 
      }
    }, @ARGV);
    
  6. or download this
      my @stats = stat($file);
      if ($now-$stats[9] > $AGE) { # file older than 14 days
    
  7. or download this
      if ($now-(stat $file)[9] > $AGE) { # file older than 14 days