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

Re^2: my least favorite perl feature

by adrianh (Chancellor)
on Feb 05, 2003 at 22:47 UTC ( #232965=note: print w/replies, xml ) Need Help??

in reply to Re: my least favorite perl feature
in thread my least favorite perl feature

I don't have a python interpreter to double check - but I'm pretty sure that python == would be true for all the pairs of numbers you give (since numbers are automatically converted to a common type in python comparisons.)

<update>If they are numbers I mean. For strings only "100" == "100" returns true, all others false. If one a string and the other a number, always false.</update>

For objects == is true in python if they are the same object (in perl refaddr($o1) == refaddr($o2).

For full details see this bit of the python docs.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2021-02-24 21:16 GMT
Find Nodes?
    Voting Booth?

    No recent polls found