print header(-cookie => $cookie); ... print header(-type => 'text/html');