in reply to Re^3: Getting range from N..end with list slice
in thread Getting range from N..end with list slice

It's actually even simpler:

@ra[$i .. $#ra]

The difference between an array slice and a list slice is that you have the array before the slice is evaluated.

Replies are listed 'Best First'.
Re^5: Getting range from N..end with list slice
by AnomalousMonk (Archbishop) on Nov 29, 2010 at 00:26 UTC
    ... even simpler:  @ra[$i .. $#ra]

    Yes, but that's also the prettier version! My intent, clumsily realized, was to endorse the idea that negative indexing off the end of an array (or, in the OP, a list) isn't the way to go.