You can check whether the input is numeric by looking into perl's regular expressions. Hope this helps..
In reply to Re^3: beginner needs help by gcw in thread beginner needs help by bjohn