Sure, but do-while makes it explicit that you always want the first loop to happen and in tis case the body isn't to large.
BTW: I like how you solved it with nested iterators, that's IMHO the cleanest approach! :)
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re^6: Embedded Newlines or Converting One-Liner to Loop
by LanX
in thread Embedded Newlines or Converting One-Liner to Loop
by mwb613
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |