Does cards() return a list or an array reference? I'll guess that it's the latter, and you actually need:
my $c = $_->cards->[0]->label();
In reply to Re: Help with unblessed object reference error
by chromatic
in thread Help with unblessed object reference error
by dimmesdale
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |