- or download this
use Data::Dumper;
# your initialization code here
print Dumper \%hash;
- or download this
# WRONG
$hash{"LISTS"}=[([]) x $length]
- or download this
$hash{LISTS} = [ map [], 1..$length ];
- or download this
my %hash;
...
# also works for direct assignment:
$hash{LISTS}[4][0] = 'other new item';