in reply to Perl...CGI...Things I want to do

Forgive me if I've misunderstood what you're trying to do, but the following would yield an array of all the files (and directories) in a given directory:
my $path = 'yourdir/yoursubdir/'; # or whatever my @filearray; while (<$path*>) { s/$path//; # strip off the filepath push @filearray, $_; # push the filename into the array }
You can then use the array to generate the form fields on your page. If you wanted to get only files with, for example, extension .txt, you would use <$path*.txt>

(By the way, if you are new to perl - and I must say I only learnt this stuff a couple of months ago - you may wish to be reassured that the snippet above comes to much the same as
while (my $file = <$path*>) { $file =~ s/$path//; push @filearray, $file; }
... though if you knew that already... well silly me.)

Sorry this is not a comprehensive solution: I hope it's some help.

§ George Sherston

Replies are listed 'Best First'.
Re: Re: Perl...CGI...Things I want to do
by ellem (Hermit) on Oct 05, 2001 at 03:15 UTC
    You've helped more than you know... you just shoved me in the right direction.
    --
    lmoran@wtsgSPAM.com
    print "\x{263a}"