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 => '',
-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??