in reply to how to set a cookie without using CGI.pm?
This prints the "Set-Cookie" line first, and follows the "Content-Type" with the required double-newlineperl -MCGI -e 'my $q = CGI->new(); print $q->header(-type=>"text/html +", cookie => $q->cookie(-name=>"foo",-value=>"bar"))'
|
|---|