in reply to HTTP/CGI Environmnet Variables

I'm not sure what the problem is; the code
foreach $key(sort keys(%ENV)) { print "$key = $ENV{$key}<p>";}
should give you all the information available. Why do you need to print it out some other way? As for the rest: In @keys[$n] = $ENV{$key};, the term @keys[$n] should likely be $keys[$n] (an array element not a slice with one entry), but those should be labeled *values*, not *keys*, shouldn't they?
chas

Replies are listed 'Best First'.
Re^2: HTTP/CGI Environmnet Variables
by intranetman (Acolyte) on Mar 01, 2005 at 22:18 UTC
    You are right on both accounts. I have cut/paste disabled in VNC and got lazy with my typing, but that is correct. I really just want to store those specific instances of REMOTE_HOST, REMOTE_ADDR, REQUEST_METHOD, REMOTE_PORT, HTTP_USER_AGENT, mac address, and HTTP_REFERER in a database. Bascially, I'm keeping track of failed login attempts.