Skip Menu |

This queue is for tickets about the autovivification CPAN distribution.

Report information
The Basics
Id: 122956
Status: resolved
Priority: 0/
Queue: autovivification

People
Owner: Nobody in particular
Requestors: MITHALDU [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: 0.18



Subject: strict/warn flags seem to simply do nothing
marketequalizer:~# perl -E 'no autovivification q[strict]; my $h; say defined $h; my $a = $h->{a}; say defined $h;' 1 marketequalizer:~# perl -E 'no autovivification q[warn]; my $h; say defined $h; my $a = $h->{a}; say defined $h;' 1 marketequalizer:~# perl -E 'no autovivification; my $h; say defined $h; my $a = $h->{a}; say defined $h;' marketequalizer:~# perl -V Summary of my perl5 (revision 5 version 24 subversion 1) configuration: Platform: osname=linux, osvers=3.16.0, archname=i686-linux-gnu-thread-multi-64int uname='linux localhost 3.16.0 #1 smp debian 3.16.0 i686 gnulinux ' I've seen the same behavior on Windows with Strawberry 5.18.
They do if you specify the categories together with 'strict' or 'warn'.
Alright, can confirm this works: # perl -E 'no autovivification qw[ fetch strict ]; my $h; say defined $h; my $a = $h->{a}; say defined $h;' Reference vivification forbidden at -e line 1. However in that case the synopsis under this heading should be adapted, or strict/warn without flags automatically load all flags: https://metacpan.org/pod/autovivification#unimport no autovivification; # defaults to qw<fetch exists delete> no autovivification qw<fetch store exists delete>; no autovivification 'warn'; no autovivification 'strict';
The documentation has been amended in version 0.18 released yesterday. Vincent