Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Need advices, displaying files in directory with CGI..

by pope (Friar)
on Sep 13, 2006 at 09:25 UTC ( #572700=note: print w/replies, xml ) Need Help??


in reply to Need advices, displaying files in directory with CGI..

this should be slightly faster:
my @files_exist = reverse sort grep { defined } map { my $f = $_; $f =~ s/^(\d+)\.html$/$1/ ? $f : undef } readdir DIRE;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://572700]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2020-01-23 23:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?