On Mon, Mar 21, 2005 at 03:31:53PM +0100, Juerd wrote: > [...] (The symmetry is slightly broken, though, because if you push > "foo" once, you have to pop three times to get it back. I don't think > this is a problem.))
That's not a new break to the symmetry of push and pop: @b = (1,2,3); push( @a, @b ); # needs 3 pops to get all of 1,2,3 back and in both the original array form and in the "treat a string as an array" form, you can retrieve a multi-element thing that was push'ed in a single operation by using a single invokation of splice. --