Creating and accessing hash elements : Hash Definition « Hash « Perl
- Perl
- Hash
- Hash Definition
Creating and accessing hash elements
%hash = ( width => '300', height => '150' );
print "\$hash{ 'width' } = $hash{ 'width' }\n";
print "\$hash{ 'height' } = $hash{ 'height' }\n\n";
Related examples in the same category