Devel::DefaultWarnings - Detect if warnings have been left at defaults
use Devel::DefaultWarnings; { my $def = warnings_default(); #true; } { use warnings; BEGIN { my $def = warnings_default(); } #false; } { no warnings; BEGIN { my $def = warnings_default(); } #false; }
Check if lexical warnings have been changed from the default. Checks the current compiling context.
Returns a true value if lexical warnings have been left as the default.
haarg - Graham Knop (cpan:HAARG) <haarg@haarg.org>
None yet.
Copyright (c) 2014 the strictures "AUTHOR" and "CONTRIBUTORS" as listed above.
This library is free software and may be distributed under the same terms as perl itself.
To install Devel::DefaultWarnings, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::DefaultWarnings
CPAN shell
perl -MCPAN -e shell install Devel::DefaultWarnings
For more information on module installation, please visit the detailed CPAN module installation guide.