Autrijus Tang wrote:
On Thu, May 12, 2005 at 12:37:06AM +0200, Fagyal Csongor wrote:Yep, but I mean in general isn't it confusing that the 0th element is actually the -1st (in Perl5 sense)? Does this mean that the -1st (Perl6) element would be the -2nd (Perl5)? Or are (-n)th elements invalid?
Damian Conway wrote:
print @array[1st..($n)th];Sounds cool, but what about $n = 0; ?
Then it would be 0..-1, an empty range.
- Fagzal