Quote:
Originally Posted by Zamthos
I use this:
What does the W do?
Code:
perl -c path/to/script.pl
|
Quote:
prints warnings about dubious constructs, such as variable names mentioned only once and scalar variables used before being set; redefined subroutines; references to undefined filehandles; filehandles opened read-only that you are attempting to write on; values used as a number that don't look like numbers; using an array as though it were a scalar; if your subroutines recurse more than 100 deep; and innumerable other things.
|
http://perldoc.perl.org/perlrun.html#Command-Switches
Use google, saves everyone time with trivialities.