in reply to Re: returning to a loop later on
in thread returning to a loop later on
redo FILENAME doesn't have a matching loop.it doesn't have to be a loop, you can label blocks, too!
my $i = 0; FOO: { print "$i\n"; redo FOO unless ++$i > 4; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: returning to a loop later on
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 |