Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 examining the Monastery: (4)
As of 2020-10-24 20:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (246 votes). Check out past polls.

    Notices?