Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Welcome to the Monastery
 
PerlMonks  

Re: cookie retrieval

by mpolo (Chaplain)
on May 18, 2001 at 10:55 UTC ( [id://81467]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to cookie retrieval

You're reading the cookie into a scalar variable rather than a hash. If you change this to
my %cookie_value=fetch CGI::Cookie;
you will have it in a hash, so that $cookie_value{'name'} will indeed be equal to 'value'.

So, in essence, one punctuation error was the difference between success and failure.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://81467]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.