in reply to Help with unblessed object reference error
Try using transitory variables to see which part is not working, something like:for (@$tableau) { my $c = ($_->cards())[0]->label(); ... }
might help find the bug. This way you can pinpoint each 'link in the chain'.for my $tabl (@$tableau) { my @deck = $tabl->cards(); my $card = $deck[0]; my $label = $card->label(); }
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|