Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 meditating upon the Monastery: (8)
As of 2019-02-17 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I use postfix dereferencing ...









    Results (95 votes). Check out past polls.

    Notices?