Use hash as an array : Hash Collections « Hash « Perl






Use hash as an array

    

$hash{fruit} = apple;
$hash{sandwich} = hamburger;
$hash{drink} = bubbly;

print "@{[%hash]}\n";

   
    
    
    
  








Related examples in the same category

1.Hash of list
2.Hash of Hashes
3.Hash of Hashes with Lists of Values
4.List of hash
5.Nested hashes