in reply to Operator % (mod) bug ?

The modulo operator % is only defined for integer numbers. The documentation in perlop could be more clear about this.

My advice is to use whole numbers, for example by multiplying all entities by 100 in your example.

Replies are listed 'Best First'.
Re^2: Operator % (mod) bug ?
by hiX0r (Acolyte) on Feb 09, 2012 at 13:57 UTC

    Yes, thank you! I used the division (/) and then check for:

    m/^\d+\z/