good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Unless vs. Until?by jeffenstein (Hermit) |
on May 22, 2002 at 07:03 UTC ( [id://168368]=note: print w/replies, xml ) | Need Help?? |
Update: crazyinsomniac has pointed out a better way to say this: The unless(condition) statement is saying the same thing as to if( not condition). The until(condition) statement is equivelant to while( not condition). That is to say, until() and while() are loops, and will repeat until the condition is met, while if() and unless() are not, and will only execute the block 0 or 1 times. Therefore, you can't trade unless() for until().
In Section
Tutorials
|
|