in reply to Re: check if 2 values are equal
in thread check if 2 values are equal

I'm a bit confused. Shouldn't

>0e0<, >0<: different
be a match?

Replies are listed 'Best First'.
Re^3: check if 2 values are equal
by GrandFather (Saint) on Jan 24, 2006 at 22:30 UTC

    0e0 and 0 are different as a string and the same as a number. OP seems to like it evaluated as different. A solution involving looks_like_number is required to get the result you would like, else 'x' and 'y' would be a match (0 == 0).


    DWIM is Perl's answer to Gödel
Re^3: check if 2 values are equal
by thedoe (Monk) on Jan 25, 2006 at 15:54 UTC