in reply to strange comparison results

And just to pound this one completely into the ground: 060000oct == 24576dec.

Update: And something a bit similar from my own experience:

>perl -wMstrict -le "my $ubar = 60_0; my $q_ubar = '60_0'; print $ubar; print $q_ubar; print 'unequal' if $ubar != $q_ubar; print 'equal' if 60 == $q_ubar; " 600 60_0 Argument "60_0" isn't numeric in numeric ne (!=) at -e line 1. unequal equal

Replies are listed 'Best First'.
Re^2: strange comparison results
by sduser81 (Novice) on Sep 02, 2010 at 00:27 UTC
    Hi,

    Thanks. I should have thought of this myself, as it is so obvious, once it is pointed out.

    Maybe this will help others avoid the same mistake I made.

    Tim