[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-WebCGI] Creating an index page



At 3:57 PM +0100 6/9/99, James Fox wrote:
>I modifying a script which makes an index page to show whats in
>that directory.
>At the moment it only shows .html documents, I want it to show
>gifs and jpgs and create a link to each one in the html...
>heres the script....  thanks in advance.
>
>opendir(DIR, ".");
>@htmlFiles = grep(/\.html$/,readdir(DIR));

Ummm... maybe
@gifFiles = grep(/\.gif$/,readdir(DIR)); #:-)
#et cetera

-Jeff Lowrey



==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org