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 surveying the Monastery: (2)
As of 2017-05-01 02:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (544 votes). Check out past polls.