dan wrote:
> I want to be able to check if a string contains only a number, no
> letters, etc. I have this procedure:
>
> if ($numexs =~ /[0-9]/{
> # do something
> }
>
> which doesn't do what I want it to do, I want it to do more or less
> this: if ($numexs contains anything other than numbers) { # do
> something }
if ($numesx =~ /\D/) {
# $numesx contains a non-digit
} else {
# $numesx contains only digits 0 through 9
}
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]