On Wed, 26 Feb 2003 16:51:49 -0500, [EMAIL PROTECTED] (Donna
Runyon) wrote:
>Is there a perl function to check if a value is alphabetic or numeric?
#!/usr/bin/perl
print is_numeric(10),"\n";
print is_numeric('3rd'),"\n";
sub is_numeric {
no warnings;
use warnings FATAL => 'numeric';
return defi
Donna Runyon wrote:
>
> Is there a perl function to check if a value is alphabetic or numeric?
You could use the POSIX character classes to determine this.
perldoc perlre
> The problem is I have listing which contain numbers such as "3rd floor".
> These are being loaded into a sql table using
if(/^\d+/)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 4:52 PM
To: [EMAIL PROTECTED]
Subject: Alphanumeric
Is there a perl function to check if a value is alphabetic or numeric?
The problem is I have listing which contain num