Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: logical AND "&&"

by YuckFoo (Abbot)
on Jan 30, 2010 at 23:32 UTC ( #820521=note: print w/replies, xml ) Need Help??

in reply to logical AND "&&"

No, you may not.
#!/usr/bin/perl use strict; my ($a, $b, $d, $e) = (1, 1, 1, 7); if(($a == 1 && $b < 2) && ($d < 4 && $e >= 6)) { print "Trying is fun!\n" };

Replies are listed 'Best First'.
Re^2: logical AND "&&"
by odegbon (Initiate) on Jan 30, 2010 at 23:42 UTC
    Hi YuckFoo, did you say I may not? But I ran your code and it worked
      My bad, go ahead and do it.

      There is much iffing and anding to be done!

      Code coder, code!

        I didnt quite get all you said in your last post. I believe this forum is for sharing, and it will be nice if your replies are in clear language when you choose to reply.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://820521]
and the daffodils sway...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2017-04-27 04:41 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (500 votes). Check out past polls.