Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Cookie Help

by hipowls (Curate)
on Apr 24, 2008 at 23:56 UTC ( #682740=note: print w/replies, xml ) Need Help??

in reply to Cookie Help

That is because you have $key between single quotes. Remove them like so

my $cookie = cookie( -NAME => '', -VALUE => $key, -EXPIRES => '+12h', );

Replies are listed 'Best First'.
Re^2: Cookie Help
by k0rn (Acolyte) on Apr 25, 2008 at 01:32 UTC
    Oh duh. Wow i feel stupid. Attention to detail. One more question i keep getting this trailing 1 on the page when it displays information. And i don't know why. For example like this.



    You are identified as

      Look at your print statements. There probably is one that shouldn't be there.

      Also, your condition should look like the following. The equality operator == is to be used for numerical comparisons.

      if ($register == 1) {

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://682740]
[shmem]: ns{1,2,3} unreachable and no caching. -.-
[karlgoethebier]: funny that they call it Big Dipper in the US. Here this part of Ursa Major is called "Großer Wagen" Big wagon...or car as you like ;-)

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2017-11-21 18:07 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (308 votes). Check out past polls.