in reply to Re: A way to avoid repeated conditional loopsin thread A way to avoid repeated conditional loops
while (<FILE>) { if (/alpha/) { some code #1; while (<FILE>) { some code #2; } } else { some code #2; } } [download]