http://qs321.pair.com?node_id=682739

k0rn has asked for the wisdom of the Perl Monks concerning the following question:

I have a problem with a cookie routine

if ($register eq 1) {
my $cookie = cookie(

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

The problem is the -VALUE => '$key'; instead of useing the data in the variable $key it uses it as text. Is their a way to fix that??