go ahead... be a heretic | |
PerlMonks |
Re: mathematical operatorsby djantzen (Priest) |
on Jun 16, 2003 at 22:01 UTC ( [id://266316]=note: print w/replies, xml ) | Need Help?? |
You want the modulus operator (%), same as in Java. I.e., perl -e 'print(5 % 3, $/)'. See perlop.
"The dead do not recognize context" -- Kai, Lexx
In Section
Seekers of Perl Wisdom
|
|