Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Copy an hash modifying some selected values

by ikegami (Pope)
on Nov 07, 2018 at 19:24 UTC ( #1225380=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Data::Diver qw( DiveVal );
    
    ...
       my $new_val = ...;
       DiveVal(\%hash, map \$_, @path) = $new_val;
    }
    
  2. or download this
    sub dive_val :lvalue {
       my $p = \shift;
    ...
       my $new_val = ...;
       dive_val(\%hash, @path) = $new_val;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2019-02-19 22:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I use postfix dereferencing ...









    Results (105 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!