http://www.perlmonks.org?node_id=455750


in reply to Re^2: Control Structures
in thread Control Structures

Er, perhaps I'm badly missunderstanding you, but wouldn't:
loop;  S  while !B:  T;  repeat;
Translate fairly literally in to:
{ S while !B; T; redo; }
In which case I don't understand your "practical perlish way".

Replies are listed 'Best First'.
Re^4: Control Structures
by halley (Prior) on May 11, 2005 at 13:49 UTC
    S and T should be done on every iteration, except when B goes true, in which case the final T should be skipped. Your syntax seems to do a lot of S repetitions then one T, and repeats endlessly.

    --
    [ e d @ h a l l e y . c c ]