Problems? Is your data what you think it is? | |
PerlMonks |
Re: How do I loop through a list two or more elements at a time?by jeroenes (Priest) |
on Oct 24, 2001 at 15:37 UTC ( [id://121081]=note: print w/replies, xml ) | Need Help?? |
For a real answer now: create your list as an array of arrays, loop on the outer array.
If you start with a flat list, you create the LoL with davorg's solution: or non-destructive:
In Section
Seekers of Perl Wisdom
|
|