If that Data::Dumper you are providing at the end really is a dump of ($_->cards())[0], then if you want to call the label method on the card object, you'd need to call it this way:
($_->cards())[0]->[0]->label()Look closely at the dump, and you'll see that what you are getting back is:
[ bless( {...}, 'Card' ), undef ] In reply to Re: Help with unblessed object reference error
by ehdonhon
in thread Help with unblessed object reference error
by dimmesdale
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |