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

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

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


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 07: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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (None)
    As of 2024-05-23 12:55 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found