|< 1 2 >| | 14 Einträge, 2 Seiten |
open FILE,'<',$file or unlink $pipe and unlink $tmpfile and die $!;
QuoteNote that if Religion is in use, you should not modify $SIG{_ _DIE_ _} or $SIG{_ _WARN_ _}, unless you are careful about invoking chaining to the old handler.
die &mysub;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
open FILE,'<',$file or mySub($!,%files);
sub mySub {
my $msg = shift;
my %hash = shift;
foreach my $key (keys %hash) {
if (unlink $hash{$key}) {
print LOG "$hash{$key} was successfully unlinked\n";
} else {
$msg .= "Unable to unlink $hash{$key}\n";
}
}
die $msg;
}
|< 1 2 >| | 14 Einträge, 2 Seiten |