in reply to Re: Modulus by zero?
in thread Modulus by zero?

IGNORE THIS

I think it may be interpreting it as

  $b % undef % 5 == 0;

undef would then be converted to zero before processing.

Replies are listed 'Best First'.
Re^3: Modulus by zero?
by Fletch (Bishop) on Nov 17, 2006 at 14:22 UTC

    The -p option to B::Deparse can be helpful when precedence questions arise:

    $ perl -MO=Deparse,-p -e '$a if $b %% 5 == 0' ((($b % %5) == 0) and $a); -e syntax OK
Re^3: Modulus by zero?
by orderthruchaos (Scribe) on Nov 17, 2006 at 14:17 UTC

    Oops... nevermind... you're right...

    From the perl DB:

    DB<2> x \%5 + 0 HASH(0x500be0) empty hash