in reply to Can't set cookie with CGI.pm
(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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can't set cookie
by Anonymous Monk on Sep 22, 2004 at 05:15 UTC | |
by ikegami (Patriarch) on Sep 22, 2004 at 05:18 UTC |