more useful options | |
PerlMonks |
Re^3: GOTO or not GOTOby tilly (Archbishop) |
on Jan 27, 2009 at 11:30 UTC ( [id://739157]=note: print w/replies, xml ) | Need Help?? |
I would personally replace it with a redo on a bare block. That bare block would also be a hint to indent the potentially redone section of code, which naturally draws attention to that control structure. General rule of thumb. Any normal use of goto can be replaced by an entirely equivalent loop control statement, possibly using labels when breaking out of multiple levels of loops. Unless there is a good reason not to, I prefer that approach.
In Section
Seekers of Perl Wisdom
|
|