in reply to Unpack Vector Weirdness

reverse has different behaviors in list vs. scalar context. Your first usage is in list context, the second (due to the assignment) is in scalar context.

Replies are listed 'Best First'.
Re^2: Unpack Vector Weirdness
by Vynce (Friar) on Oct 10, 2005 at 20:23 UTC
    oh, creepy weird. that makes sense, i guess, but even knowing reverse had different behaviors by context, i didn't spot the context shift. thanks.
    .