in reply to guidelines for inline coding
To turn a block into a simple statement, wrap it in a do:
do { statement1; statement2 } for @array;
But I'm not sure it still buys you anything.
Also, note that do { ... } while (condition) checks the condition after the first iteration of the loop.
|
|---|