Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Concerning hash operations (appending, concatenating)

by ABCXYZ (Novice)
on Dec 25, 2012 at 23:06 UTC ( #1010293=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    <%hash = (%hash, e => 'f', g => 'h', i => 'j');
    <%hash = (%otherhash, %hash);
    
  2. or download this
    my %hash1 =qw/ One 1 Two 2 Three 3/;
    my %hash2 =qw/ Four 4 Five 5 Six 6/;
    ...
    %hash1 ,= %hash2;
    
    say keys %hash1;