Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: only want numerics in field

by Limbic~Region (Chancellor)
on Apr 21, 2014 at 15:44 UTC ( [id://1083033] : note . print w/replies, xml ) Need Help??


in reply to only want numerics in field

newby2perl,
Scalar::Util has a function call looks_like_number(). The only thing is I believe it allows scientific notation which your example doesn't include.

Cheers - L~R