Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: what is benefit of unless ?

by Anonymous Monk
on Feb 05, 2005 at 12:04 UTC ( #428302=note: print w/replies, xml ) Need Help??


in reply to what is benefit of unless ?
in thread unless statements

You can use "else" with "unless".

"unless" means "if not", so it reverses the meaning of an "if" comparison.

See perlsyn for details.

Please read Where should I post X? and How (Not) To Ask A Question.

Replies are listed 'Best First'.
equivalent code for unless
by Anonymous Monk on Feb 05, 2005 at 12:15 UTC
    is this the equivalent code for " unless(condition)" ? if !(condition) { ... ... } else { ... ... } reply soon, barun parichha
    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2019-11-20 06:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (96 votes). Check out past polls.

    Notices?