thw W enables all warnings (like telling you that you are using a variable only once)
running this file that way
warnMe.pl
results in this
Code:
perl -cW warnMe.pl
Useless use of a variable in void context at warnMe.pl line 1.
Name "main::warnMe" used only once: possible typo at warnMe.pl line 1.
warnMe.pl syntax OK
http://perldoc.perl.org/perlrun.html#Command-Switches