Hash setting and getting : Hash Value « Hash « Perl






Hash setting and getting

    

$hash{name} = "AAA";
print $hash{name};

   
    
    
    
  








Related examples in the same category

1.Associative arrays are indexed by string values.
2.Building a Price List
3.Using array as the hash value
4.Using the array as the hash value
5.Store color value in a hash
6.Accessing Elements
7.Adding elements to a hash