in reply to returning to a loop later on
{1} is redundant in a regex - always.
Your indentation is stuffed. It looks like the first if is inside the first while loop - it isn't.
redo FILENAME doesn't have a matching loop.
You could structure your code something like:
while (1) { while ($out !~ m/^[sSfF]$/) { ... } if ($out =~ m/^[sS]$/) { print $output; next; } last; } exit if $out !~ m/^[fF]$/; while (1) { while ($save !~ (m/^[a-zA-Z]\w*$/)) { ... } if (-e $save) { ... } if ($overwrite =~ m/^[nN]$/) { next; } ... last; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: returning to a loop later on
by mreece (Friar) on Sep 07, 2006 at 03:40 UTC | |
by GrandFather (Saint) on Sep 07, 2006 at 03:46 UTC | |
by mreece (Friar) on Sep 07, 2006 at 03:58 UTC | |
by GrandFather (Saint) on Sep 07, 2006 at 04:50 UTC |