Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: unexpected modify hash in a distance with grep { $_ }

by LanX (Cardinal)
on Dec 20, 2019 at 18:41 UTC ( #11110448=note: print w/replies, xml ) Need Help??


in reply to Re^2: unexpected modify hash in a distance with grep { $_ }
in thread unexpected modify hash in a distance with grep { $_ }

> My educated guess is that it's because autovivification generally happens in an lvalue context.

Good guess, but I can't see lvalue in these inconsistent results when aliasing:

Re^2: unexpected modify hash in a distance with grep { $_ } (inconsistent behaviour of aliasing)

edit

My educated guess is rather that dave_the_m will digg into the sources now and point us to a (known?) glitch! ;-)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

  • Comment on Re^3: unexpected modify hash in a distance with grep { $_ }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2020-11-26 07:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?