RosettaCodeData/Task/Associative-array-Creation/Perl/associative-array-creation-...

6 lines
105 B
Perl

print $hashref->{key1};
$hashref->{key1} = 'val1';
@{$hashref}{('key1', 'three')} = ('val1', -238.83);