Don't ask to ask, just ask | |
PerlMonks |
Re: Pushing Arrays into Hash without nestingby 1nickt (Canon) |
on Feb 13, 2021 at 20:37 UTC ( [id://11128347]=note: print w/replies, xml ) | Need Help?? |
Hi, At the top of your script you have ... and then in the sub in question you have effectively
First of all, why attempt to pass the array as a list? In general it's better to pass references around, like the one you stored in the hash. Just return the reference, and let the caller dereference and handle the list. You can dereference the result of the subroutine call, like this:
Hope this helps!
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom
|
|