Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: logical non-short-circuit operators

by RMGir (Prior)
on Nov 02, 2011 at 18:37 UTC ( #935466=note: print w/replies, xml ) Need Help??


in reply to Re: logical non-short-circuit operators
in thread logical non-short-circuit operators

++, looks good.

But I think you mean

if ($num || $type) { # (|| rather than &&) something(); }

Mike

Replies are listed 'Best First'.
Re^3: logical non-short-circuit operators
by moritz (Cardinal) on Nov 02, 2011 at 19:19 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://935466]
help
Chatterbox?
NodeReaper settles into the armchair by the fire. You weren't using it were you?

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2017-08-23 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (353 votes). Check out past polls.

    Notices?