in reply to Strange one! Perl's or Apache's problem?!?

Nik, You just haven't dug into figuring out what everyone's been telling you in your previous thread on the same subject. You probably have a problem of the current working directory being different when the script is executed as a command line script versus as a CGI script. And because your glob is using relative pathnames, that fouls up your script. Have you attempted to understand what this means?

You can be sure about it if you use Cwd; at the top of your script, and then print getcwd(), "<p>\n"; in the line of code right after your HTML header gets printed. This will let you to prove to yourself (as we've been suggesting) that the script is executing via CGI from a different CWD, thus fouling up your paths.


Dave

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.