carlriz has asked for the wisdom of the Perl Monks concerning the following question:
I was looking at this expression in perl:
Does perl increment the index for both arrays automatically? Is it shorthand for a 'foreach' loop?@ranks[@sorted_positions] = (0 .. $#sorted_positions);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Loops in Perl
by LanX (Saint) on Mar 11, 2014 at 18:52 UTC | |
Re: Loops in Perl
by kcott (Archbishop) on Mar 11, 2014 at 21:12 UTC | |
by carlriz (Beadle) on Mar 12, 2014 at 00:48 UTC | |
Re: Loops in Perl
by Laurent_R (Canon) on Mar 11, 2014 at 18:57 UTC | |
by AnomalousMonk (Archbishop) on Mar 11, 2014 at 21:58 UTC | |
by Laurent_R (Canon) on Mar 12, 2014 at 19:00 UTC | |
Re: Loops in Perl
by Anonymous Monk on Mar 11, 2014 at 20:39 UTC | |
Re: Loops in Perl
by 2teez (Vicar) on Mar 11, 2014 at 20:46 UTC | |
Re: Loops in Perl
by Marshall (Canon) on Mar 14, 2014 at 05:14 UTC |
Back to
Seekers of Perl Wisdom