Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?  unless statements  by
root (Scribe) on Nov 05, 1999 at 04:10 UTC
( #947=perltutorial: print w/ replies, xml ) Need Help??  Unless
statements allow you to say unless something is true do this.
For example: unless($divisor==0){      #so long as the $divisor
isn't equal to 0   $value=$value/$divisor; #go ahead and divide
$value by $divisor } else {   $divisor=1;             #otherwise
set $divisor to 1 If you've got that I suggest you take a look
at while loops  Comment on unless statements what is benefit of
unless ? by Anonymous Monk on Feb 05, 2005 at 11:34 UTC     I
think unless statements are similar to if statements.But if-else
stmt gives us more flexibility then unless.So is there any
specific use of this . please reply soon. regards, barun
parichha         is this the equivalent code for "
unless(condition)" ? if !(condition) { ... ... } else { ... ...
} reply soon, barun parichha         You can use the