Thread Schleife: Dateien umbenennen: Prob mit substr (31 answers)
Opened by steinwolf at 2004-05-31 17:39

pq
 2007-01-26 13:02
#82852 #82852
User since
2003-08-04
12209 Artikel
Admin1
[Homepage]
user image
[quote=AbRaXaS,26.01.2007, 09:07]
Code: (dl )
1
2
3
4
5
        if (unlink($file) == 0) {
           print "File $file deleted successfully.\n";
       } else {
           print "File $file was not deleted.\n";
       }
[/quote]
perldoc -f unlink sagt:
Quote
unlink  Deletes a list of files.  Returns the number of files successfully deleted.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Schleife: Dateien umbenennen: Prob mit substr