note
toolic
<blockquote><i>
There is something wrong with the way I am passing the arrays to the hash .. it will output ie ARRAY(0x1f512580), not sure where exactly the problem is.
</i></blockquote>
You need to deference the array. Change:
<c>
my @last_gen=$allgen{$i-1};
</c>
to:
<c>
my @last_gen=@{$allgen{$i-1}};
</c>
[doc://perldsc]
911993
911993