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


in reply to Re: Find if a number is a multiple of a number.
in thread Find if a number is a multiple of a number.

use % for positive integer values.
What does make you think that the use % of is limited to positive integers?
$ perl -le 'print for map $_%-3, -18..-15' 0 -2 -1 0