Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Localizing hash keys in an AoH, continued

by rjt (Deacon)
on Jul 22, 2013 at 19:12 UTC ( #1045704=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
    
    dump \%local;
    dump \%hash;
    
  2. or download this
    {
      # tied RJT::LocalHash
    ...
      some => "original",
    }
    
  3. or download this
    package RJT::LocalHash {
        use parent 'Tie::Hash';
    ...
            $_[0]{new}{$_[1]} // $_[0]{orig}{$_[1]};
        }
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2014-10-26 02:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (149 votes), past polls