NAME
ex::caution - Perl pragma for enabling or disabling strictures and warnings simultaneously
SYNOPSIS
use ex::caution;
no ex:caution;
DESCRIPTION
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;
is exactly equivalent to
no strict;
no warnings;
EXPORT
Enables warnings and stricts in the lexical scope in which it is used.
NOTE
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';
BUGS
Its probably a bug that we support
no caution;
but, well, not supporting it wouldn't be the Perl way.
SEE ALSO
AUTHOR
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 AND LICENSE
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.