in reply to Re^2: unexpected result using '>='
in thread unexpected result using '>='

You mean something like $period - $in_view > .01 instead of $period >= $in_view?

By the way, it's just a matter of time till you burn yourself by misinterpreting the sense of an unless. Some people recommend never using unless; I think it's ok so long as the expression is a single simple variable.

Replies are listed 'Best First'.
Re^4: unexpected result using '>='
by GrandFather (Saint) on Aug 16, 2006 at 23:51 UTC

    I'd be inclined to use abs ($period - $in_view) > 0.01.

    /me slaps forehead. That's good for not equal, but ain't so good for >=! (thanks ysth).


    DWIM is Perl's answer to Gödel