%cookies = fetch CGI::Cookie;
print "
Fetched Cookie
\n";
print Dumper %cookies; # Prints nothing!!!
print "
Just dumped cookie hash.
\n";
if(%cookies ne undef)
{
# We get here, so %cookies is defined
print "Keys: ";
foreach (keys %cookies) # Finds no keys!!!
{
print;
print " ";
}
print "
---
";
if($cookies{'ID'} ne undef)
{
# Tried as a plain hash, hashref, with and without '->value'
my $hashref = $cookies{'ID'};#->value;
$username = $$hashref{'username'};
$password = $$hashref{'password'};
print "Username: $username
";
print "Password: $password
";
}
else
{
# We keep ending up here!!!!
print "Damn!
\n";
}
}