in reply to mathematical operator for integer division, "div" ?
You want the modulus operator (%), same as in Java. I.e., perl -e 'print(5 % 3, $/)'. See perlop.