in reply to Re^6: shift in list context buggy?
in thread shift in list context buggy?
Please quote ...
Why? You already posted the examples. But since you seem to have a short memory:
The following equivalences hold (assuming $[ == 0 and $#a >= $i ) push(@a,$x,$y) splice(@a,@a,0,$x,$y) pop(@a) splice(@a,-1) shift(@a) splice(@a,0,1) unshift(@a,$x,$y) splice(@a,0,0,$x,$y) $a[$i] = $y splice(@a,$i,1,$y)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: shift in list context buggy?
by LanX (Saint) on Nov 12, 2013 at 16:08 UTC | |
by tye (Sage) on Nov 12, 2013 at 16:29 UTC | |
by LanX (Saint) on Nov 12, 2013 at 16:40 UTC | |
by BrowserUk (Patriarch) on Nov 12, 2013 at 18:23 UTC | |
| |
by BrowserUk (Patriarch) on Nov 12, 2013 at 16:15 UTC | |
|