http://www.perlmonks.org?node_id=682740


in reply to Cookie Help

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

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