>>>>> "JG" == Jim Gibson <[email protected]> writes:

  JG> The unless construct above is correct. The 'until' construct is
  JG> not. 'until' can only occur at the end of a block preceded by 'do' or
  JG> at the end of a statement as a modifier.

  JG> do {
  JG>       ...
  JG> } until( condition );

until is just while( ! EXPR ). it can be used whereever while can which
means loop blocks or statement modifiers. perldoc perlsyn covers this.

but i never use until anyhow. i use unless a fair amount as i don't like
if ( ! EXPR). my current boss has asked me to stop using unless but i am
not stopping.

uri

-- 
Uri Guttman  ------  [email protected]  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to