Don't ask to ask, just ask | |
PerlMonks |
Re: What is the best way to compare variables so that different types are non-equal?by moritz (Cardinal) |
on Jul 20, 2009 at 08:38 UTC ( [id://781567]=note: print w/replies, xml ) | Need Help?? |
To digress a bit into Perl 6-direction: That's exactly the reason why Perl 6 has many more equality testing operators.
In this case either eqv (which does the same as Test::More::is_deeply does) or === (which compares if two variables hold the same object) would be appropriate.
In Section
Seekers of Perl Wisdom
|
|