I would go:

unless ( ($x < 50) || ($x > 80) ){
    print "";
}

of course you could use and, or
you can only use and, or if your running at least Perl5  


-----Original Message-----
From: "David Draley"<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Mon Sep 17 14:36:06 PDT 2001
Subject: "Unless" statement

>how would I write an unless statement that is looking for the values 
>inbetween two numbers?
>
>$x = <STDIN>;
>chomp $x;
>
>unless (50 < $x > 80)
>  { print "";
>  }
>else
>{
>other function
>}
>
>---------------
>
>thanks
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
>-- 
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

.  .      .            .  .__       .       , 
|\/| _.._.;_/   _.._  _|  [__)._.* _| _  _ -+-
|  |(_][  | \  (_][ )(_]  [__)[  |(_](_](/, | 
                                     ._|
___________________________________________________
GO.com Mail                                    
Get Your Free, Private E-mail at http://mail.go.com



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

Reply via email to