Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Copy an hash modifying some selected values

by Anonymous Monk
on Nov 07, 2018 at 16:46 UTC ( #1225365=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    my %hash1 = (
    ...
            key3 => '',
            key4 => 4
    );
    
  2. or download this
    $hash1{key1}
    $hash1{key2}{key22}
    $hash1{key2}{key23}
    
  3. or download this
    my %hash2 = (
            key1 => "$home_path/relative_path",
    ...
            key3 => '',
            key4 => 4
    );
    
  4. or download this
    @list = ('key1','key2:key22','key2:key23');
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2019-10-14 07:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?