in reply to Cookie Function Thingy

What you wrote above should work, yes. There are several variables here: perhaps the cookie was set for the wrong domain (not the domain for which you're trying to retrieve the cookie); perhaps it was set for the wrong path; perhaps it wasn't set at all. Are you able to find the cookie in your cookies file? Are you running your CGI script on a particular ISP?

Why don't you put this code in your script:

for my $key (keys %ENV) { print $key, ": ", $ENV{$key}, "<br>\n"; }
This should print out all of the values in %ENV-- you're using the right variable, but perhaps this will give a hint as to why it's not working.

Also, please post the code that you're using to set the cookie.

And I'm not trying to point you towards CGI.pm, but what doesn't work about it?