P is for Practical | |
PerlMonks |
Re^4: Changing the content typeby friedo (Prior) |
on Jul 15, 2008 at 20:32 UTC ( [id://697799]=note: print w/replies, xml ) | Need Help?? |
To add to Fletch's (rather unnecessarily vociferous) correction, the right way to do it is to pass both arguments to header at the same time.
If you're using a framework like CGI::Application, there are utility methods for keeping track of multiple headers and outputting them exactly once, so you don't have to keep track of lots of print statements and won't accidentally print two sets of headers.
In Section
Seekers of Perl Wisdom
|
|