p5.26-autovivification (perl/p5-autovivification) Add to my watchlist

Lexically disable autovivification

When an undefined variable is dereferenced, it gets silently upgraded to an array or hash reference (depending of the type of the dereferencing). This behaviour is called *autovivification* and usually does what you mean (e.g. when you store a value) but it may be unnatural or surprising because your variables gets populated behind your back. This is especially true when several levels of dereferencing are involved, in which case all levels are vivified up to the last, or when it happens in intuitively read-only constructs like 'exists'. This pragma lets you disable autovivification for some constructs and optionally throws a warning or an error when it would have happened.

Version: 0.180.0 License: (Artistic-1 or GPL)
Reset

3 build(s) found
Builder Build Number Start Time Elapsed Time Watcher Build Status
11 1262 2020-11-23 16:22:04 0:01:31 293 build successful
11.arm64 757 2020-11-22 4:16:41 0:00:29 280 build successful
10.15 11366 2019-12-10 15:58:07 0:01:35 1334 build successful