Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: What is the best way to compare variables so that different types are non-equal?

by DrHyde (Prior)
on Jul 20, 2009 at 09:20 UTC ( #781574=note: print w/replies, xml ) Need Help??


in reply to What is the best way to compare variables so that different types are non-equal?

'eq' stringifies its arguments before comparing them. I suggest using Data::Compare, which also knows about data types.
  • Comment on Re: What is the best way to compare variables so that different types are non-equal?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://781574]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2017-02-26 08:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (371 votes). Check out past polls.