![]() |
![]() |
5 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
open(F, "file") or &wite2logfile;
# tu dies und das
close(F);
sub write2logfile {
open(F, ">> file.log");
print F $!;
close(F);
}
1
2
3
4
5
6
7
unless (open ...) {
write2logfile("blabla");
}
else {
# tu dies und das
close ...
}
1
2
3
4
5
6
7
8
9
10
11
sub write2logfile {
open(F, ">> file.log");
print F $!;
close(F);
0;
}
if(open(...) or write2logfile(...))
{
# tu dies und das
}
![]() |
![]() |
5 Einträge, 1 Seite |