- First you call meow() which populates an array called @state.
- Then you initialise @state with an empty array reference:
my @state = &share([]);
- Then you loop 6 times pushing empty array references into @state:
for (my $i = 0;$i <6 ; ++$i) {
my $row = &share([]);
@{$state[$i]} = $row;
}
- Then you dump the array print Dumper(@state); and all it contains are the empty array references.
Can you really not see why?
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".