Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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!

      A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2022-12-04 22:01 GMT
Find Nodes?
    Voting Booth?

    No recent polls found