Help for this page

Select Code to Download


  1. or download this
    foreach my $item (@theseContents) {
          if (!($item =~ /\.zip$/)) {
    ...
               }
          }
    }
    
  2. or download this
    foreach my $item(@theseContents){
        next unless ($item =~ /\.zip$/);
        next unless ($item =~ /^\./);
        ..... rest_of_code ......
    }
    
  3. or download this
    my $file = shift; #grab the first arg to the sub
    my $todayfile = sprintf("%02d%02d%02d\.log", 
                               $times[5]-100,$times[4]+1,
                               $times[3]);
    #then your exit routine