Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Opendir under WinNT using CGI

by Yohimbe (Pilgrim)
on Feb 01, 2001 at 03:17 UTC ( [id://55589]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://55589]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-20 05:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found