Don't ask to ask, just ask | |
PerlMonks |
Re^3: I am confused by a "Learning Perl" sample showing "unshift"by LanX (Saint) |
on Jan 22, 2021 at 22:41 UTC ( [id://11127314]=note: print w/replies, xml ) | Need Help?? |
For reasons of symmetry this unshift @a, @b means @a = ( @b, @a ) Much the same way as push @a, @b means @a = ( @a, @b ) So no implicit reversing of @b. HTH :)
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|