Skip Menu |

This queue is for tickets about the autovivification CPAN distribution.

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

Owner: Nobody in particular
Requestors: MITHALDU [...]

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

Subject: strict/warn flags seem to simply do nothing
Download (untitled) / with headers
text/plain 665b
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'.
Download (untitled) / with headers
text/plain 542b
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: 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

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to