RE: is there isnumber() function in perl?

2005-08-25 Thread Charles K. Clarkson
Jayvee Vibar wrote: : Is there an IsNumber() function in perl? I'm looking for a way to : determine of a given $variable is numeric or not. Thanks. Read perlfaq4: "How do I determine whether a scalar is a number/whole/integer/float?" HTH, Charles K. Clarkson --

Re: is there isnumber() function in perl?

2005-08-25 Thread Xavier Noria
On Aug 25, 2005, at 3:22, Jayvee Vibar wrote: Is there an IsNumber() function in perl? I'm looking for a way to determine of a given $variable is numeric or not. Thanks. If you need to know whether it looks like a number there are a few ways, see perldoc -q determine If on the other

Re: is there isnumber() function in perl?

2005-08-25 Thread hot flame
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 ad

is there isnumber() function in perl?

2005-08-25 Thread Jayvee Vibar
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]