View Single Post
  #8  
Old 02-26-2013, 03:28 AM
Drajor's Avatar
Drajor
Developer
 
Join Date: Nov 2012
Location: Halas
Posts: 355
Default

Quote:
Originally Posted by Zamthos View Post
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.
__________________
Drajor regards you indifferently -- what would you like your tombstone to say?
Reply With Quote