Help for this page

Select Code to Download


  1. or download this
    foreach my $file (@files){
       ...
    ...
       move(...)  or die("...");
       ...
    }
    
  2. or download this
    foreach my $file (@files){
       ...
    ...
       move(...)  or do { warn("..."); next };
       ...
    }
    
  3. or download this
    foreach my $file (@files){
       if (!eval {
    ...
          die("Error processing file $file: $@");
       }
    }
    
  4. or download this
    sub process_file {
       my ($file) = @_;
    ...
          die("Error processing file $file: $@");
       }
    }