- or download this
my %hash = (
1 => 'one',
2 => 'two',
3 => 'three',
);
- or download this
my %hash = (
'1', 'one',
'2', 'two',
'3', 'three',
);
- or download this
my %hash = ( '1', 'one', '2', 'two', '3', 'three' );
- or download this
%hash = split /\W/, $string;