Thread testen ob Verzeichnis leer (33 answers)
Opened by alexus-777 at 2004-06-05 12:03

[E|B]
 2004-06-05 13:28
#83030 #83030
User since
2003-08-08
2561 Artikel
HausmeisterIn
[Homepage] [default_avatar]
Hallo!

Quote
opendir(D, "files") or die $!;
@files = grep{$_ =~ m/\w/} readdir(D);
closedir(D);

print "Verzeichnis leer!" if(@files eq "");
Gruß, Erik!

s))91\&\/\^z->sub{}\(\@new\)=>69\&\/\^z->sub{}\(\@new\)=>124\&\/\^z->sub{}\(\@new\)=>);
$_.=qq~66\&\/\^z->sub{}\(\@new\)=>93~;for(@_=split(/\&\/\^z->sub{}\(\@new\)=>/)){print chr;}

It's not a bug, it's a feature! - [CGI-World.de]

View full thread testen ob Verzeichnis leer