(As an aside, the CGI module doesn't set $!, so it's useless to print its value. And more specifically, CGI::header() doesn't ever return an error.)
Are you running under mod_perl? CGI::header() always returns '' (which is false) when running under mod_perl. The headers are sent by calling $r->send_cgi_header($header);, where $header is the string normally returned to be printed. The statement will always die in mod_perl.
In reply to Re: Can't set cookie
by ikegami
in thread Can't set cookie with CGI.pm
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |