Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
hello, i have found a strange thing, with an array a while loop and a negative index, it seems to travel trough the array but with beginning by the end. $i=-1 => last element, $i=-2 => the one before the last .... and so on. for me it's ok now that i know it, but is it normal ?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: through an array in reverse
by choroba (Cardinal) on Aug 06, 2012 at 15:01 UTC | |
by Anonymous Monk on Aug 06, 2012 at 15:05 UTC | |
Re: through an array in reverse
by blue_cowdawg (Monsignor) on Aug 06, 2012 at 15:56 UTC | |
by Athanasius (Archbishop) on Aug 06, 2012 at 16:38 UTC | |
by blue_cowdawg (Monsignor) on Aug 06, 2012 at 17:48 UTC | |
Re: through an array in reverse
by Anonymous Monk on Aug 06, 2012 at 20:03 UTC | |
Re: through an array in reverse
by linuxkid (Sexton) on Aug 06, 2012 at 15:37 UTC |
Back to
Seekers of Perl Wisdom