ex::caution - Perl pragma for enabling or disabling strictures and warnings simultaneously
use ex::caution; no ex:caution;
ex:caution allows you to enable or disable warnings and strictures simultaneously with one command. Unlike either strict or warnings it does not support arguments. It is all or nothing.
use ex::caution;
is exactly equivalent to
use strict; use warnings;
and
no ex::caution;
no strict; no warnings;
Enables warnings and stricts in the lexical scope in which it is used.
This module is currently in the 'ex' namespace as this is the approved way to release experimental pragmata. If approved it will be renamed to simply 'caution';
Its probably a bug that we support
no caution;
but, well, not supporting it wouldn't be the Perl way.
strict, warnings
Original idea and packaging by Yves Orton, <demerphq@>. The amazingly simple implementation was posted by Aaron Crane to the Perl5Porters mailing list in response to a mail by yves.
Copyright (C) 2007 by Yves Orton and Aaron Crane
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install ex::caution, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ex::caution
CPAN shell
perl -MCPAN -e shell install ex::caution
For more information on module installation, please visit the detailed CPAN module installation guide.