in reply to grep integer and fractional part from a division (modulus ?)
Try like this,
use strict; use warnings; my ($a, $b) = (301 / 60) =~ m/^([^\.]+)\.?([^\.]*)$/; print "$a\t$b\n"; [download]
Regards,Velusamy R.