No such thing as a small change | |
PerlMonks |
Re: Replacing original hash with modified hash returned from subroutineby shadowsong (Pilgrim) |
on Oct 28, 2017 at 21:12 UTC ( [id://1202242]=note: print w/replies, xml ) | Need Help?? |
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:
Hope that helps. Best Regards,
In Section
Seekers of Perl Wisdom
|
|