in reply to Re: Perlplexation - foreach shoulda Known
in thread Perlplexation - foreach shoulda Known
As of Perl 5.12:
while (my ($i, $element) = each @array) { do_something( $element ) unless $i % 3; }
Improve your skills with Modern Perl: the free book.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Perlplexation - foreach shoulda Known
by Riales (Hermit) on Apr 13, 2012 at 20:57 UTC | |
by jdporter (Paladin) on Apr 17, 2012 at 01:31 UTC | |
by Riales (Hermit) on Apr 17, 2012 at 16:57 UTC |