NAME
Perl::Critic::Policy::Freenode::WarningsSwitch - Scripts should not use the -w switch on the shebang line
DESCRIPTION
The -w
switch enables warnings globally in a perl program, including for any modules that did not explicitly enable or disable any warnings. Some of these modules may not be designed to run with warnings enabled, but still work fine. Instead, use warnings within your own code only.
#!/usr/bin/perl -w # not ok
use warnings; # ok
AFFILIATION
This policy is part of Perl::Critic::Freenode.
CONFIGURATION
This policy is not configurable except for the standard options.
AUTHOR
Dan Book, dbook@cpan.org
COPYRIGHT AND LICENSE
Copyright 2015, Dan Book.
This library is free software; you may redistribute it and/or modify it under the terms of the Artistic License version 2.0.