in reply to How to determine whether a number has a decimal component?

Why not using Regexp::Common::number?

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

  • Comment on Re: How to determine whether a number has a decimal component?

Replies are listed 'Best First'.
Re^2: How to determine whether a number has a decimal component?
by Xenofur (Monk) on Jan 04, 2009 at 22:04 UTC
    Thanks for the suggestion, but as mentioned earlier, doing this with RegExp is hackish and a bit too much of "shooting with cannons at flies".