[Chicago-talk] detecting whether a scalar is number or a string.
richard at rushlogistics.com
Sun Jul 6 19:04:56 PDT 2008
Thanks so much for the response. It's just a one time use, throw away script to validate data before it gets entered into a table. I will try your "low tech" way and if it works for me I am going to run with it.
Have an awesome week everybody!
---- Chicago.pm chatter <chicago-talk at pm.org> wrote:
> The Big question, Richard, is why you want to know if it's a number or
> not. What will you do based on whether it is or isn't? Are you
> trying to validate input to a subroutine? Then take a look at
> Params::Validate which already has solved this problem.
> Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance
> Chicago-talk mailing list
> Chicago-talk at pm.org
More information about the Chicago-talk