Re: array index

2007-09-12 Thread Chas Owens
On 9/11/07, Pavanvithal Torvi <[EMAIL PROTECTED]> wrote: > Hi All, > > Thanks a lot for the advice/help. I think it would be better to avoid using > this feature :) snip It is perfectly safe to use negative indexes. Perl 6 won't be out for a while and this feature change is one of the smaller inc

Re: array index

2007-09-12 Thread Pavanvithal Torvi
Hi All, Thanks a lot for the advice/help. I think it would be better to avoid using this feature :) Regards, Pavan On 9/11/07, Jeff Pang <[EMAIL PROTECTED]> wrote: > > 2007/9/11, Pavanvithal Torvi <[EMAIL PROTECTED]>: > > > > > > I wanted to ask others if this is expected behaviour. > Yes. > > >

Re: array index

2007-09-11 Thread Chas Owens
On 9/11/07, Jenda Krynicky <[EMAIL PROTECTED]> wrote: snip > OH MY ! > > Yet another reason to stay away from Perl6. > > After reading that part of S09 I can't keep from thinking that Perl6 > was designed specifically for golf and obfu. Well *. snip Heh. Perl 6 is going to meet a lot of resistanc

Re: array index

2007-09-11 Thread Jenda Krynicky
On 11 Sep 2007 at 13:04, Chas Owens wrote: > Negative indexing has been around at least since Perl 5 (and I think > it goes back much farther than that). As for compatibility with > future versions of Perl, you should have no problem with the Perl 5 > line (e.g. 5.10, the next and possibly last Pe

Re: array index

2007-09-11 Thread Chas Owens
On 9/10/07, Pavanvithal Torvi <[EMAIL PROTECTED]> wrote: snip > If I make use of this feature will it cause compatibility issues with the > later versions of perl. snip Negative indexing has been around at least since Perl 5 (and I think it goes back much farther than that). As for compatibility

Re: array index

2007-09-11 Thread Jeff Pang
2007/9/11, Pavanvithal Torvi <[EMAIL PROTECTED]>: > > > I wanted to ask others if this is expected behaviour. Yes. > If I make use of this feature will it cause compatibility issues with the > later versions of perl. > Please don't use $a and $b as variable names,they are built-in variables used

RE: array index

2007-09-11 Thread Thomas Bätzler
Pavanvithal Torvi <[EMAIL PROTECTED]> asked: > While debugging a script I came across a scenario where array > access was happening with a negative index. > (because of a corner case that was not properly handled). > This resulted in accessing the array in a reverse order. [...] > I wanted to ask