in reply to CGI::Application header (typo, heh)

The CGI::Application docs show you should use -type for that. It also references the CGI.pm docs that elaborate and show that to get arbitrary headers you would use -Content_type not 'Content-type'.

$self->hea­der_add( -t­ype => 'text/plai­n' );

- tye        

Replies are listed 'Best First'.
Re^2: CGI::Application header weirdness (docs)
by cLive ;-) (Prior) on May 23, 2009 at 06:33 UTC
    Hey tye, yep, I worked it out. I think it should throw an exception though for a bad one. Bugs the hell out of me when I'm allowed to make those kind of errors by the module. Ah well, at least I can sleep now :)