Perl-Sensitive Sunglasses | |
PerlMonks |
Problem with header() method when extending CGI.pmby thinker (Parson) |
on Jan 09, 2002 at 17:58 UTC ( [id://137444]=perlquestion: print w/replies, xml ) | Need Help?? |
thinker has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks, I have been trying to 'extend' CGI.pm, to customise it to a site I am working on. (btw. Are there many other monks who approach this problem in this way?) While most of it does what I want, when I call the header() method, my instance does not behave as I expect. Here is a simple example of what is going wrong. My module looks like
I am using the following code to test the module
when I call the header() method, it prints
whereas, if I change use IsaCGI and new IsaCGI to use CGIand new CGI I get
Can someone enlighten me as to why this is happening? Where has the charset info gone? Thank youthinker
Back to
Seekers of Perl Wisdom
|
|