Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Localizing hash keys in an AoH, continued

by rjt (Curate)
on Jul 22, 2013 at 19:12 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1045704]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-03-29 07:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found