autovivification - Lexically disable autovivification.
VERSION
- Version 0.14
+ Version 0.18
SYNOPSIS
no autovivification;
"unimport"
no autovivification; # defaults to qw<fetch exists delete>
no autovivification qw<fetch store exists delete>;
- no autovivification 'warn';
- no autovivification 'strict';
+ no autovivification warn => @categories;
+ no autovivification strict => @categories;
Magically called when "no autovivification @opts" is encountered.
Enables the features given in @opts, which can be :
* 'warn'
- Emits a warning when an autovivification is avoided.
+ Emits a warning when an autovivification is avoided for the
+ categories specified in @opts.
+
+ Note that "no autovivification 'warn'" currently does nothing by
+ itself, in particular it does not make the default categories warn.
+ This behaviour may change in a future version of this pragma.
* 'strict'
- Throws an exception when an autovivification is avoided.
+ Throws an exception when an autovivification is avoided for the
+ categories specified in @opts.
+
+ Note that "no autovivification 'strict'" currently does nothing by
+ itself, in particular it does not make the default categories die.
+ This behaviour may change in a future version of this pragma.
Each call to "unimport" adds the specified features to the ones already
in use in the current lexical scope.
perldoc autovivification
- Tests code coverage report is available at
- <http://www.profvince.com/perl/cover/autovivification>.
-
ACKNOWLEDGEMENTS
Matt S. Trout asked for it.
COPYRIGHT & LICENSE
- Copyright 2009,2010,2011,2012,2013,2014 Vincent Pit, all rights
- reserved.
+ Copyright 2009,2010,2011,2012,2013,2014,2015,2017 Vincent Pit, all
+ rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.