http://www.perlmonks.org?node_id=781491


in reply to Re^2: 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?

ok ! overload::Overloaded( $rx ), 'Regexp is overloaded'; ok ! overload::Method( $rx, q{""} ), 'Regexp has q{""} overloaded';
I'm confused shouldn't it say "is not" and "has not"?

Cheers Rolf

  • Comment on Re^3: What is the best way to compare variables so that different types are non-equal?
  • Download Code

Replies are listed 'Best First'.
Re^4: What is the best way to compare variables so that different types are non-equal?
by kyle (Abbot) on Jul 20, 2009 at 00:48 UTC

    You're right. I originally wrote the descriptions to match the tests, and then I was surprised when I ran them (they failed). After that, I reversed the tests and forgot to rephrase the descriptions.