Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: 5.24 -> 5.28 -- what has changed in autovivification?

by leszekdubiel (Scribe)
on Apr 17, 2020 at 15:58 UTC ( [id://11115694]=note: print w/replies, xml ) Need Help??


in reply to Re: 5.24 -> 5.28 -- what has changed in autovivification?
in thread 5.24 -> 5.28 -- what has changed in autovivification?

Thank you for hints. I will check diver module.

PS. In case anybody has the same problem versions were from Debian Stretch and Buster installations:

# command: # perl -e 'print $], "\n"; ' ; dpkg -l | egrep autovivifi # Debian buster: 5.028001 ii libautovivification-perl 0.18-1+b1 amd +64 pragma for lexically disabling autovivification # Debian stretch: 5.024001 ii libautovivification-perl 0.16-1+b2 + amd64 pragma for lexically disabling autovivification

Replies are listed 'Best First'.
Re^3: 5.24 -> 5.28 -- what has changed in autovivification?
by swl (Parson) on Apr 18, 2020 at 00:36 UTC
      #!/usr/bin/env perl use warnings; use strict; no autovivification qw{fetch store exists delete}; my $h = { a => { p => 2, q => 3 } }; print "perl ver $], autoviv ver $autovivification::VERSION:\n"; ! $$h{a}{x}{z} and print "a/x/z not\n"; __END__ perl ver 5.024004, autoviv ver 0.16: a/x/z not perl ver 5.028001, autoviv ver 0.16: a/x/z not perl ver 5.024004, autoviv ver 0.18: Can't vivify reference at a.pl line 9. perl ver 5.028001, autoviv ver 0.18: Can't vivify reference at a.pl line 9.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11115694]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (8)
As of 2024-04-16 08:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found