Anonymous user
Associative array/Creation: Difference between revisions
→[[Perl]]
Line 18:
# using , both key and value need to be quoted if containing something non-numeric in nature
my %hash = (
'key1'
'key-2'
'three'
4
);
Line 48:
@hash->{'key1', 'three'} = ('val1', -238.83);
==[[Ruby]]==
|