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

6 lines
105 B
Perl
Raw Permalink Normal View History

2018-08-17 15:15:24 +01:00
print $hashref->{key1};
2013-04-10 14:58:50 -07:00
2018-08-17 15:15:24 +01:00
$hashref->{key1} = 'val1';
2013-04-10 14:58:50 -07:00
2018-08-17 15:15:24 +01:00
@{$hashref}{('key1', 'three')} = ('val1', -238.83);