Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: && and ne

by kilinrax (Deacon)
on Feb 08, 2001 at 22:25 UTC ( #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? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2022-05-25 04:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (84 votes). Check out past polls.

    Notices?