in reply to Re: Array manipulation how to
in thread Array manipulation how to

And without an additional variable:
push @a, shift @a; unshift @a, pop @a;

Replies are listed 'Best First'.
Re^3: Array manipulation how to
by chessgui (Scribe) on Feb 07, 2012 at 11:39 UTC
    would this work?
    @_=@a; push, shift; @_=@a; unshift, pop;
      No, as that doesn't modify @a.