in reply to
Re^3: 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?
True enough.
sub comparifier {
no warnings 'uninitialized'; # because blessed() and reftype() can
+ return undef.
my $sep = pack 'N', rand 2**15;
blessed($_[0]) . $sep . reftype($_[0]) . $sep . $_[0]
eq
blessed($_[1]) . $sep . reftype($_[1]) . $sep . $_[1]
}
Between the mind which plans and the hands which build, there must be a mediator... and this mediator must be the heart.