in reply to Re^3: Exploiting Perls idea of what is a number (oops)
in thread Exploiting Perls idea of what is a number

Then all you need is
my $result = do { no warnings 'numeric'; $x == $y };

Replies are listed 'Best First'.
Re^5: Exploiting Perls idea of what is a number (oops)
by rovf (Priest) on Jul 09, 2008 at 06:49 UTC

    I had not thought about using a do block. Thanks a lot - this is an elegant solution!

    -- 
    Ronald Fischer <ynnor@mm.st>