Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: && and ne

by kilinrax (Deacon)
on Feb 08, 2001 at 22:25 UTC ( [id://57226]=note: print w/replies, xml ) Need Help??


in reply to && and ne

Try using brackets to define the way you want that statement evaluated more precisely:
if (($myrowidarray[$myint] ne "del") && ($myrowidarray[$myint] ne "cal +"))
Update: well it seems that 'ne' has a higher precedence than '&&', so the above code should work. I tend to use brackets out of habit anyway, as they make the code easier to read.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-18 02:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found