Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

unexpected modify hash in a distance with grep { $_ }

by leszekdubiel (Scribe)
on Dec 20, 2019 at 17:29 UTC ( #11110437=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -CSDA
    
    ...
    my $d2 = Dumper($h); 
    $d1 eq $d2 or  die "\nFAIL! h{x} modified, h{y} not modified... why?\n
    +\n$d1\n$d2";
    
  2. or download this
    grep: 1 ... 2
    test: no
    ...
              'c' => 2,
              'x' => undef
            };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://11110437]
Approved by Paladin
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2020-11-27 15:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?