in reply to Re^8: while(){}continue{}; Useful?
in thread while(){}continue{}; Useful?
If all your if blocks have to next to avoid entering the continue anyway
I don't know if you're following my program flow - the nexts don't skip the continue block, they're effectively gotos for the continue block. I personally prefer an if(){next} to if(){}elsif structure - to me it reads easier at the expense of a keystroke (wholly subjective) - but that is irrelevant to the overall while-continue structure. By using a continue, it means unless I hit a line where I explicitly say I've successfully parsed (undef $_, next;) the error code is executed.
|
|---|