Try like this,
use strict; use warnings; my ($a, $b) = (301 / 60) =~ m/^([^\.]+)\.?([^\.]*)$/; print "$a\t$b\n";
Regards,
Velusamy R.
In reply to Re: grep integer and fractional part from a division (modulus ?)
by Samy_rio
in thread grep integer and fractional part from a division (modulus ?)
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |