Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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>

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://215895]
help
Chatterbox?
[1nickt]: I have been an apostate in the Apple orchard for almost 15 years. But Dells are still high quality it seems, unlike Macs these days.
[1nickt]: And you can still configure the system at will, on the "Small Business" site.
[Corion]: 1nickt: I bought a 2015 XPS 13, which is a very nice and shiney (and somewhat overpriced) machine, but I think it's still better priced than an Apple machine. Now it just has to hold up 10 years like the old one did ;)
[1nickt]: Ah, you got Linus' fave? With Ubuntu? 4k display?
[1nickt]: ( The 17" monster I just bought is for my wife, who doesn;t leave the house with it...)

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2017-03-27 13:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.