Thread or die: fehlerbehandlung ohne abbruch (7 answers)
Opened by Rambo at 2005-06-07 12:19

renee
 2005-06-07 12:45
#55400 #55400
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
for(<*.*>){
if(unlink $_){
print $_," deletedt\n";
}
else{
print "can't delete ",$_,"\n";
}
}


Einzeiler ohne Abbruch:
Code: (dl )
unlink <*.*> or print "can't delete files\n";
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread or die: fehlerbehandlung ohne abbruch