You can split on the decimal point, however, the dot is a meta-character (it actually stands for any character at all), so it must be escaped with a backslash. Try:
Code:
@fields = split (/\./,$test);
However, you don't need to split, you can just test for a match with a regex:
Code:
if ($test ~= m/\./) {
# test had a decimal point
} else {
# test did not have a decimal point
}