in reply to I am confused by a "Learning Perl" sample showing "unshift"
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.
|
---|