in reply to Re^2: Sort multidimensional array by third item
in thread Sort multidimensional array by third item

Seeing Range operators in perlop is of absolutely no help since it doesn't mention negative indexes.
  • Comment on Re^3: Sort multidimensional array by third item

Replies are listed 'Best First'.
Re^4: Sort multidimensional array by third item
by kennethk (Abbot) on Nov 12, 2010 at 22:59 UTC
    From Range Operators in perlop:
    In list context, it returns a list of values counting (up by ones) from the left value to the right value. If the left value is greater than the right value then it returns the empty list.
    Your left value is 1. Your right value is -2. I've made this mistake before.
    A reply falls below the community's threshold of quality. You may see it by logging in.