|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: How to declare arrays and scalars together?by cheekuperl (Monk) |
| on Jun 18, 2012 at 05:18 UTC ( #976752=note: print w/ replies, xml ) | Need Help?? |
|
As such, nothing looks/IS wrong in your code. It's just that it does not work the way you are thinking it would. RHS of first line is flattened into a single list and copied in its entirety into @arr1. All other elements in LHS of first line are empty. Remember why you can not pass multiple arrays to a subroutine?
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||