in reply to Re: What is the best way to compare variables so that different types are non-equal?
in thread What is the best way to compare variables so that different types are non-equal?
or
sub comparifier { no warnings 'uninitialized'; # because blessed() and reftype() can r +eturn undef. blessed($_[0]).reftype($_[0]).$_[0] eq blessed($_[1]).reftype($_[1]).$_[1] }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: What is the best way to compare variables so that different types are non-equal?
by ikegami (Patriarch) on Jul 21, 2009 at 17:56 UTC | |
by jdporter (Paladin) on Jul 21, 2009 at 22:27 UTC |
In Section
Seekers of Perl Wisdom