$multiarray[i][15] =~ s/\,/./g; ## HERE $latitude = ((($multiarray[i][15]) / 90) * 8388608); ## And HERE