in reply to Re: A CGI whiteboard in Perl
in thread A CGI whiteboard in Perl
use strict; #following three are for debugging--turn off for production. #(first two can clog up the web log; last isn't of as much consequence + if left uncommented) #use warnings;
Usually, if you're going to use "strict" and "warnings" then you'd put them right at the top of the file so that that they cover as much of your code as possible.
And if you're commenting out 'use warnings' because it "can clog up the web log", then I'd be concerned that there are still some potential problems in your code. It should be possible to get code to run constantly without filling your web log with warnings. You should run with 'use warnings' turned on and track down and fix all of the warnings that you get.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: A CGI whiteboard in Perl
by OfficeLinebacker (Chaplain) on Oct 06, 2006 at 16:23 UTC | |
by OverlordQ (Hermit) on Oct 13, 2006 at 15:09 UTC |