in reply to Re^5: Embedded Newlines or Converting One-Liner to Loop
in thread Embedded Newlines or Converting One-Liner to Loop

> I like to see the ending condition right up front.

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!

  • Comment on Re^6: Embedded Newlines or Converting One-Liner to Loop