in reply to remove lending figures

If by "lending" you mean "leading," the split function will do this for you. i.e.
my $json = "0.0"; my ($minutes, $seconds) = split(/[.:]/, $json);
By placing the . and the : into a character class (in the []), split will work on either one.