on Wed, 15 May 2002 03:12:15 GMT, [EMAIL PROTECTED] (Drieux) wrote:

> so you need to check that it is numeric...
> 
> so you could do it with say
> 
>      
>      if ( $val =~ /^\d+/ and $val > 0 and $val <11) {

Not good enough. 

    $val = 3.141592654;

is perfectly numeric but fails your /^\d+/.

See

    perldoc -q float
    How do I determine whether a scalar is a         
    number/whole/integer/float? 

-- 
felix

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

Reply via email to