http://www.perlmonks.org?node_id=1131294


in reply to solving modulo trouble

In according to perlop:
Binary "%" is the modulo operator, which computes the division remaind +er of its first argument with respect to its second argument.