programming-examples/perl/Hash/Creating and accessing hash elements.pl
2019-11-15 12:59:38 +01:00

3 lines
146 B
Perl

%hash = ( width => '300', height => '150' );
print "\$hash{ 'width' } = $hash{ 'width' }\n";
print "\$hash{ 'height' } = $hash{ 'height' }\n\n";