XP is just a number | |
PerlMonks |
Re: How do I loop through a list two or more elements at a time?by petral (Curate) |
on Oct 25, 2001 at 20:58 UTC ( [id://121493]=note: print w/replies, xml ) | Need Help?? |
To be pedantic, the question was "two or more". Here's a conventional answer which allows for varying the grouping size. (Just to make it a little interesting, I included an alternate method for dealing with the last group being short.)
In Section
Seekers of Perl Wisdom
|
|