in reply to Re: Question on syntax
in thread Question on syntax
This would allow you/someone else to more easily add more steps to the loop
The "easy to add another line" thing is a bit of a red herring; any decent editor can convert a postfix for to a block for with a single keypress.
The real reason to prefer block for is that it allows you to bind the loop variable to something other than $_ (eg your $number), which often makes for more readable code.
|
|---|