einerwitzen has asked for the wisdom of the Perl Monks concerning the following question:
opendir(DIR, $directory) || die print "Couldn't open directory"; my @unscont = readdir(DIR); closedir(DIR); my @unfiles = grep(/\./, @unscont); my @undirs = grep(!/\./, @unscont); @files = sort(@unfiles); @dirs = sort(@undirs); my @noshow = (".", ".."); foreach $f (@files) { unless (grep /$f/, @noshow) { print " <a style=\"{font-size: 13px; color: #000000;\"} href=\"./$ +this?func=read&file=$f&dire=$dire\">$f</a><br>\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: noshow by file extension
by Aristotle (Chancellor) on Jun 03, 2002 at 06:34 UTC | |
by grinder (Bishop) on Jun 03, 2002 at 13:47 UTC | |
by Aristotle (Chancellor) on Jun 03, 2002 at 21:47 UTC | |
|
Re: noshow by file extension
by Beatnik (Parson) on Jun 03, 2002 at 06:22 UTC | |
|
Re: noshow by file extension
by Zaxo (Archbishop) on Jun 03, 2002 at 11:14 UTC | |
|
Re: noshow by file extension
by kpo (Initiate) on Jun 03, 2002 at 06:41 UTC | |
by grinder (Bishop) on Jun 03, 2002 at 13:30 UTC |