in reply to Modulo of fraction?

If it doesn't work, make yourself a sub to solve the problem instead of worrying about the why :)
use strict; use warnings; print myrem(4, 2.5); sub myrem { return $_[0] - int ($_[0] / $_[1]) * $_[1]; };
You might also want to look at the overload / override modules on CPAN.