in reply to Find if a number is a multiple of a number.

You can use the modulus operator :

if ( ! ($y % $x) ) { # it is an exact multiple }

/J\