p5.34-autovivification (perl/p5-autovivification) Updated: 2 years, 2 months ago 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) GitHub
Reset

19 build(s) found
Builder Build Number Start Time Elapsed Time Watcher Build Status
14.arm64 8109 2024-01-19 2:14:27 0:00:10 4165 build successful
14 7138 2023-11-04 17:32:21 0:00:42 1287 build successful
13.arm64 4651 2023-03-02 8:14:24 0:00:16 2322 build successful
13 3907 2022-12-19 19:16:43 0:00:28 733 build successful
12 16181 2022-01-18 9:05:37 0:00:14 3655 build successful
10.13 136927 2022-01-07 7:59:44 0:01:10 44807 build successful
10.14 113927 2022-01-06 16:08:22 0:00:25 35625 build successful
10.11 168174 2022-01-06 14:52:08 0:00:23 53942 build successful
10.6 51793 2022-01-06 13:56:30 0:03:00 26393 build successful
10.6.x86_64 86131 2022-01-06 12:06:14 0:02:49 26311 build successful
11 59452 2022-01-06 2:23:13 0:00:34 14443 build successful
10.8 74103 2022-01-05 13:26:19 0:00:49 24169 build successful
10.15 85062 2022-01-05 3:34:46 0:01:08 24434 build successful
11.arm64 40354 2022-01-04 15:30:47 0:00:08 14382 build successful
10.12 171596 2022-01-04 7:00:18 0:00:33 52718 build successful
10.10 168062 2022-01-04 6:47:47 0:00:35 53795 build successful
10.9 172775 2022-01-04 6:46:49 0:00:25 53481 build successful
10.7 81576 2022-01-04 6:41:14 0:00:31 26208 build successful
12.arm64 35522 2022-01-04 2:44:09 0:00:10 3200 build successful