Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Simple read directory script not working
November 27, 2005, 6:04 pm
rate this thread
Re: Simple read directory script not working
Why did you switch from the OO style to the function style?
You should check to see if you actually got what you asked for:
opendir(DIR, $path) or die "could not open '$path' directory $!";
^ what is this comma here for?
^ is this your actual code?
Stick with a single style:
$cgi->h1("found file: $name");
Run it from the command line instead of in a CGI environment.
Tad McClellan SGML consulting
firstname.lastname@example.org Perl programming
Fort Worth, Texas