page 75 of the Camel book ..

$cnt = tr/0-9//; count the digits in $_ 

hope this gets you started ...


-----Original Message-----
From: Rene Verharen [mailto:[EMAIL PROTECTED]]
Sent: October 11, 2001 15:59
To: Beginners-CGI List
Subject: Determine number or word


Hi,

Is there a simple way to determine if a variable contains a number or (one 
or more) alpha-nummeric characters ?



Vriendelijke groet,



Rene Verharen
[EMAIL PROTECTED]
http://www.verharen.net



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to