Display a hash with print : Hash Output « Hash « Perl






Display a hash with print

   

%hash = ( width => '300', height => '150' );
$hash{ 'color' } = 'blue';


print "%hash\n";      
print %hash, "\n";    

   
    
    
  








Related examples in the same category

1.Display the list of values
2.Dump the hash
3.Output nested hash
4.Print mixed structure