[ back to toc ]

number test

Date: 2002/06/04 16:16

Q:
Hi,
Is there any way of using Perl to basically do this:

if(numbera is not in between 1 and 11) { sayso }
else { say that numbera is in between 1 and 11 }

Thank you
*NAME-DELETED*
A:
Yes of course.

if( $numbera >=1 && $numbera <=11 ){sayso}else{}

Regards,
Peter

[ back to toc ]