Use regex..
($variable =~ /^\d+$/)?1:0;

On 8/25/05, Jayvee Vibar <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> Is there an IsNumber() function in perl? I'm looking for a way to determine
> of a given $variable is numeric or not. Thanks.
> 
> 
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
> 
> 
>

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to