Hashes Assignment in action : Hash Assignment « Hash « Perl






Hashes Assignment in action

    

%seasons=("A" => "Spring",
          "B" => "Summer",
          "C"  => "Fall",
          "D"  => "Winter",
         );

%days=("Mon" => "Monday",
       "Tue" => "Tuesday",
       "Wed" => undef,
      );
$days{"Wed"}="Wednesday";
$days{5}="Friday";

   
    
    
    
  








Related examples in the same category

1.Hash hash overwrites
2.Merge two hash variable
3.Hash List Assignment