in reply to sharing array please help

  1. First you call meow() which populates an array called @state.
  2. Then you initialise @state with an empty array reference:
    my @state = &share([]);
  3. Then you loop 6 times pushing empty array references into @state:
    for (my $i = 0;$i <6 ; ++$i) { my $row = &share([]); @{$state[$i]} = $row; }
  4. 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".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?