in reply to Why do I need -w in a cgi script
says about the -w switch:perldoc perlrun
IMHO, you should always use the "-w" switch - I do :-)-w prints warnings about dubious constructs, such as variable + names that are mentioned only once and scalar variables that are + used before being set, redefined subroutines, references to und +efined filehandles or filehandles opened read-only that you are a +ttempt- ing to write on, values used as a number that doesn’t look + like numbers, using an array as though it were a scalar, if you +r sub- routines recurse more than 100 deep, and innumerable other + things.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why do I need -w in a cgi script
by jonadab (Parson) on Oct 09, 2003 at 16:14 UTC | |
by Juerd (Abbot) on Oct 09, 2003 at 16:19 UTC | |
by jonadab (Parson) on Oct 09, 2003 at 18:46 UTC | |
by Juerd (Abbot) on Oct 09, 2003 at 21:20 UTC | |
by Abigail-II (Bishop) on Oct 09, 2003 at 16:20 UTC | |
by Melly (Chaplain) on Oct 10, 2003 at 11:56 UTC | |
by Abigail-II (Bishop) on Oct 10, 2003 at 12:25 UTC | |
by Melly (Chaplain) on Oct 10, 2003 at 12:50 UTC | |
|