Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 God said, "Let Newton be!"...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2017-09-25 07:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (277 votes). Check out past polls.

    Notices?