in reply to "42" ~~ "42.0" is false in 5.10

This corresponds closely to how the bitwise operators work: if either operand is a number or has been used in a numeric context, it's a numeric operation, otherwise it's a string operation.

I like it, and would be unhappy to see it work any differently. May I suggest you use the +0~~ (aka ~~0+) operator?

Replies are listed 'Best First'.
Re^2: "42" ~~ "42.0" is false in 5.10
by FunkyMonk (Bishop) on Dec 25, 2007 at 02:00 UTC
    The +sperm and sperm+ operators?

    :-)