Welcome to the Monastery | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
My question is why is it that way? See unshift: Note the LIST is prepended whole, not one element at a time, so the prepended elements stay in the same order. Use reverse to do the reverse. In reply to Re: I am confused by a "Learning Perl" sample showing "unshift"
by haukex
|
|