Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

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

Help for this page

Select Code to Download


  1. or download this
     
    #!/usr/bin/perl 
    
    ...
    sub tst {
        warn "y: ",$_[0] ;
    }
    
  2. or download this
    C:/Perl_524/bin\perl.exe  d:/tmp/pm/grep_autovivify.pl 
    Use of uninitialized value $_ in warn at d:/tmp/pm/grep_autovivify.pl 
    +line 13.
    ...
              'b',
              'a'
            ];
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2020-11-26 05:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?