in reply to Re^2: Slicing an array variable with a -1 or any negative number doesn't work
in thread Slicing an array variable with a -1 or any negative number doesn't work

Then you'll be disappointed to learn about substr($s, 0, -1) and slice(@a, 0, -1)

Replies are listed 'Best First'.
Re^4: Slicing an array variable with a -1 or any negative number doesn't work
by Anonymous Monk on Nov 29, 2017 at 18:48 UTC
    You mean splice(@a, 0, -1)? What makes you think I don't know about it?