Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Control Structures

by BUU (Prior)
on May 10, 2005 at 20:36 UTC ( [id://455750]=note: print w/replies, xml ) Need Help??


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 ]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://455750]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-20 05:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found