in reply to Checking for numbers and a period

Doing a search for "currency validation" came up with one useful question that had already been asked: integer validation.

You could also look at Params::Validate or CGI::Validate.