Hi CommaSplice,
Your issue is the first line of your trivia subroutine.
$starship_ref isn't being assigned anything – the call to shift returns a scalar that you're attempting to assign to a list...
Change:
my ($captains, $starship_ref) = shift;
to:
my $captains = shift; my $starship_ref = shift;
Hope that helps.
Best Regards,
Shadowsong
In reply to Re: Replacing original hash with modified hash returned from subroutine
by shadowsong
in thread Replacing original hash with modified hash returned from subroutine
by CommaSplice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |