I don't think so. I do (split)[-1] regularly and it works fine. If you left out the parens however it would think this was a pattern to match. I was told by someone on perlmonks that the failure of [3 .. -1] with split is something that should be fixed in subsequent versions of Perl. > > [1,6,8..-1] > > in this case "-" is seen as a metacharacter inside the > character class and > is not seen as -1 >
- Re: array slice question royce . wells
- Peter Cornelius