programming-examples/perl/Hash/Creating and accessing hash elements.pl

3 lines
146 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
%hash = ( width => '300', height => '150' );
print "\$hash{ 'width' } = $hash{ 'width' }\n";
print "\$hash{ 'height' } = $hash{ 'height' }\n\n";