in reply to Re: CGI::start_html and mod_perl
in thread CGI::start_html and mod_perl
It is not an error but a warning, so you can "hide" it by not activating warnings
In my opinion, hiding warnings is a terrible idea. And the worst way to do it is to just remove use warnings from the code. That stops you from knowing about any warnings that might appear anywhere in your code. That sounds like coding without a safety net for no good reason.
If you do have a piece of code where you want to "hide" a warning then just hide that specific warning in that specific piece of code. In this instance, that might look a bit like this:
{ no warnings 'uninitialized'; print start_html(...); }
That way you still get the benefit of use warnings throughout most of your code.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: CGI::start_html and mod_perl
by CountZero (Bishop) on Jul 06, 2006 at 14:05 UTC |