Re: Re: "Unless" statement

2001-09-18 Thread Mark Bergeron
Very good. You're paying attention. -Original Message- From: "Brett W. McCoy"<[EMAIL PROTECTED]> To: "Mark Bergeron"<[EMAIL PROTECTED]> Cc: "David Draley"<[EMAIL PROTECTED]>, [EMAIL PROTECTED] Date: Tue Sep 18 15:23:22 PDT 2001 Subjec

Re: "Unless" statement

2001-09-18 Thread Brett W. McCoy
On Tue, 18 Sep 2001, Mark Bergeron wrote: > I would go: > > unless ( ($x < 50) || ($x > 80) ){ > print ""; > } No... that will return true for all values less than fifty or all values more than 80. To get the numbers in between, you want numbers that are more than 50 AND less than 80, the o

Re: "Unless" statement

2001-09-18 Thread Mark Bergeron
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"

Re: "Unless" statement

2001-09-17 Thread Brett W. McCoy
On Mon, 17 Sep 2001, David Draley wrote: > how would I write an unless statement that is looking for the values > inbetween two numbers? > > unless (50 < $x > 80) print '' unless( ($x > 50) and ($x < 80) ); -- Brett http://www.chapelperilous.net/ --