I can't seem to set cookies in Perl no matter what.
These are the two ways I 've tried:
1) using CGI.pm
$cookie = $query->cookie(-name=>'DemoName',
-value=>'success',
-expires=>'+4h',
-path=>'/');
print $query->header(-cookie=>$cookie);
but all that does is print...