Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
Do you know where your variables are?
 
PerlMonks  

Re: && and and (well, you try searching for an answer)

by traveler (Parson)
on Sep 02, 2006 at 16:34 UTC ( [id://570887]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to && and and (well, you try searching for an answer)

Can someone explain the difference between && and and and or and ||?

'and' and 'or' are lower precedence

Extra points if you can offer a search term for this on google and/or perlmonks that would help answer this without a new post.

google for "perl logical operators"

Super bonus-points if you can render the first paragraph in acceptable and comprehensible english.

Can someone explain the difference between '&&' and 'and' and 'or' and '||'?

  • Comment on Re: && and and (well, you try searching for an answer)

Replies are listed 'Best First'.
Re^2: && and and (well, you try searching for an answer)
by apotheon (Deacon) on Sep 03, 2006 at 03:22 UTC

    refactor:

    "Someone please explain the difference between '&&' and 'and', and the difference between 'or' and '||'."

    print substr("Just another Perl hacker", 0, -2);
    - apotheon
    CopyWrite Chad Perrin

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://570887]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.