in reply to Crashing Cookie Code
). Also in your code:use Data::Dumper; ... ... print Dumper %cookies;
The docs for CGI::Cookie suggest that value() will return a hashref if the original cookie is feed a hashref, as opposed to returning a hash. What you probably want is :my %hash = $cookies{'ID'}->value; $username = $hash{'username'}; $password = $hash{'password'};
my $hashref = $cookies{'ID'}->value; $username = $$hashref{'username'}; $password = $$hashref{'password'};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Crashing Cookie Code
by quill (Initiate) on Jun 19, 2001 at 17:14 UTC | |
by Masem (Monsignor) on Jun 19, 2001 at 17:37 UTC | |
by quill (Initiate) on Jun 19, 2001 at 19:42 UTC |