in reply to Opendir under WinNT using CGI

STDIN is from the client posting to your server but a line by line read of it is probably not what you want to do.

Something like the following is more robust, and more portable and has the advantage of working on the command line and in GET mode too. as in: /cgi-bin/foo.pl?c:/foo

my $q= new CGI; @directory=$q->keywords(); opendir (DIR, chomp($directory[0]));

--
Jay "Yohimbe" Thorne, alpha geek for UserFriendly