7 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
opendir (DIR, $dir);
while($i = readdir(DIR))
{
if ($i != "..")
{
print "<li><a href=\"" . $dir . $i . "\" target=\"_blank\" />" . $i . "</a></li>\n";
}
closedir(DIR);
1
2
3
4
5
6
7
8
9
opendir(DIR,$dir) or die $!;
my @files = grep{$_ !~ /^\.\.?$/}readdir(DIR);
closedir DIR;
@files = reverse @files;
for my $file(@files){
print qq~<li><a href="$dir$file" target="_blank" />$file</a></li>\n~;
}
7 Einträge, 1 Seite |