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