Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: eq vs. ==

by Abigail-II (Bishop)
on Jul 21, 2003 at 07:49 UTC ( #276173=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: eq vs. ==
in thread eq vs. ==

I use

4 == func $a, $b

because if I write it as:

func $a, $b == 4

I can never remember whether that's that calls func with the arguments $a and $b and compares that with 4, or whether it calls func with argument $a and the second argument true/false depending whether $b is 4 or not.

Abigail


Comment on Re: eq vs. ==
Select or Download Code
Re: Re: eq vs. ==
by liz (Monsignor) on Jul 21, 2003 at 08:06 UTC
    I find both hard to read because of lack of parentheses. I guess I spent too much time in other languages that force that on you...

    Liz

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2015-07-03 06:28 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 (48 votes), past polls