in reply to Re: Useful uses of redo?
in thread Useful uses of redo?
I guess you can do:
{ # do { stmt; stmt; stmt; redo if $cond; # } while ($cond); }
and
{ # repeat { stmt; stmt; stmt; redo unless $cond; # } until ($cond); }
but why? yuck! It's like saying that while loops while henceforth be like:
{ last unless $cond; # while ($cond) stmt; stmt; stmt; redo; # wend }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Useful uses of redo?
by wolv (Pilgrim) on Aug 26, 2004 at 21:28 UTC | |
by aufflick (Deacon) on Aug 26, 2004 at 22:57 UTC | |
by BrowserUk (Patriarch) on Aug 27, 2004 at 06:16 UTC |