[Israel.pm] number recognizer

Offer Kaye oferk at oren.co.il
Tue May 18 01:45:25 PDT 2004


> 
> On Tue, 18 May 2004, Offer Kaye wrote:
> 
> > Check out perlfaq4, the question: "How do I determine whether a 
> scalar is a
> > number/whole/integer/float?"
> 
> Yes. That's useful. Thanks.
> 
> -- 
> Shlomo Yona

You sound disappointed. What does this:
   if (/^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/)
   { print "a C float\n" }

Not match that you need to match as a number?

----------------------------------
Offer Kaye




More information about the Perl mailing list