in reply to Re^3: Control Structures
in thread Control Structures
To be honest, I'm totally lost in what you are saying up to "The best way I know to express the loop-and-a-half is:" ... from there on, I'm with you 100%. and you're right, this...
while (1) { S; last if (B); T; }
...is a perfectly valid way of expressing the construct in Perl(5). But I'd like something:
hence my desire to have...
do { S; } while (!B) { T; }
...in perl5, which when S or T are No-Ops, breaks down to either...
do { S; } while (!B); # OR while (!B) { T; }
but the meaning of "do" changes in P6, hence...
loop { S; } while (!B) { T; }
|
|---|