Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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?
[Corion]: r@j: Have you printed what '$Process_java' prints? How will Perl know that you mean a variable named $Process and not a variable named $Process_java? Also, why doesn't Perl complain when you're using strict in your program?
[erix]: thanos1983: s/ For login purposes / For logging purposes / # I suppose ...
[r@j]: Actully $Process_Java this is getting from config file

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (13)
As of 2017-10-23 15:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (280 votes). Check out past polls.

    Notices?