in reply to Re: Re: Re: Re: Cookie not getting stores
in thread Cookie not getting stores
Perl doesn't work that way. You first declare %cookie as a hash. Then you look for the pass entry of the hash. It's not there because %cookie is empty: you just declared it and Perl doesn't automagically put cookie values in hashes for you.
Since you're using CGI.pm, you might have better luck with:
my $pass = cookie( 'pass' );This will actually retrive the cookie with the name pass from the query, if it exists.
|
|---|