Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^6: Array/List Strangenessby LanX (Saint) |
on Aug 05, 2009 at 11:12 UTC ( [id://786055]=note: print w/replies, xml ) | Need Help?? |
That's what Taulmarill meant. Basically: an "empty" array can have any size, but an empty list always has size 0. UPDATE: that should show it...
Line 12 clearly shows, that concatenating two "empty" arrays leads to a larger "empty" array... Anyway the difference between line 5 and 7 is somehow surprising ... UPDATE: Aaaaaargh!!! 8) In line 5, I fell into the scalar comma operator trap again ... it's basically (@c=@a),(@b)
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|