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 }
In reply to Re^2: Useful uses of redo?
by ikegami
in thread Useful uses of redo?
by kvale
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |