This package browser is in early development. Mind the rough edges.

perl-autovivification 0.18

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 but it may be unnatural or surprising because your variables get 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. The pragma provided by this package lets you disable autovivification for some constructs and optionally throws a warning or an error when it would have happened.

Installation

Install perl-autovivification 0.18 as follows:

guix install perl-autovivification@0.18

Or install the latest version:

guix install perl-autovivification

You can also install packages in augmented, pure or containerized environments for development or simply to try them out without polluting your user profile. See the guix shell documentation for more information.