Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Logical AND

by jkahn (Friar)
on Nov 26, 2002 at 18:45 UTC ( #215895=note: print w/ replies, xml ) Need Help??


in reply to Logical AND

Looks okay to me:

use warnings; use strict; my (@size) = (2,3,4); my ($freq) = 'FREE'; my $data = @size; if ($data >= 1) { print "MADE IT IN HERE\n"; } if (($freq eq 'FREE') && ($data >= 1)) { print "MADE IT INTO THE LOGICAL AND\n"; }
And here's the output:
D:\tmp>perl test.pl
MADE IT IN HERE
MADE IT INTO THE LOGICAL AND

D:\tmp>


Comment on Re: Logical AND
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (19)
As of 2015-07-31 21:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (282 votes), past polls