in reply to Checking for data types

As mentioned by others, you can construct a regex (though it needs to be somewhat complicated if you want to catch all formats of numbers rather than just digits and floats e.g. scientific notation). Scalar::Util::looks_like_number() is easier. If you happen to be using DBI in your script anyway, it has its own implementatin of looks_like_number() so you can use it rather than requiring Scalar::Util.