MLUG: RE: [MLUG - DISCUSSION] Dumb Perl Question
RE: [MLUG - DISCUSSION] Dumb Perl Question
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
if you really want to do it in perl, look at the 'glob' function.  you
could also use the standard 'opendir,' 'stat,' 'open' way of doing
things...  glob is easier.  do a `man perlfunc` and search for glob, or
a `man File::Glob` to see the options.  turning on directory indexing
and getting rid of your index.* file(s) in that directory would still be
easier, though.

     ryan woodsmall
        EMAIL:PROTECTED

> -----Original Message-----
> From: Davis, Ryan Wiley (UMC-Student) 
> Sent: Tuesday, May 07, 2002 1:12 PM
> To: EMAIL:PROTECTED
> Subject: [MLUG - DISCUSSION] Dumb Perl Question
> 
> 
> Okay,
> 
> So I am looking for a bit of perl to put into a CGI and I am 
> kindof lost on exactly how to do it. Let me describe.
> 
> I want the perl to read the filenames in a certain sub 
> directory of my web account. There are a few files 10-30 in 
> this directory. I would then like the perl code to output 
> (into HTMLof course) the listing of said directory and a link 
> to access all these files. 
> 
> I'm currently messing with different ways of doing this, but 
> wanted to know if any of you monkeys out there have already 
> done something like this and have a quick and easy solution.
> 
> -Ryan

--
To unsubscribe, go to http://mlug.missouri.edu/members/edit.php

Archives are available at http://mlug.missouri.edu/list-archives/