Welcome to the Monastery | |
PerlMonks |
Re: Handling both string and numeric comparisonsby Aragorn (Curate) |
on May 12, 2005 at 14:44 UTC ( [id://456410]=note: print w/replies, xml ) | Need Help?? |
In the standard module Scalar::Util, there is a function looks_like_number EXPR with which you can check this. It'll return true if Perl thinks EXPR is a number.
Arjen
In Section
Seekers of Perl Wisdom
|
|