in reply to How to declare arrays and scalars together?
RHS of first line is flattened into a single list and copied in its entirety into @arr1.my (@arr1, @arr2, $var, @arr3) = ( (1,2),(11,22),"0", () ); print "\n[@arr1]"; print "\nvar is $var";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to declare arrays and scalars together?
by 2teez (Vicar) on Jun 18, 2012 at 05:36 UTC | |
by Anonymous Monk on Jun 18, 2012 at 16:49 UTC | |
by 2teez (Vicar) on Jun 18, 2012 at 19:32 UTC | |
by Anonymous Monk on Jun 19, 2012 at 01:59 UTC |