On Wed, 2002-05-15 at 11:50, drieux wrote:
>
> On Wednesday, May 15, 2002, at 02:46 , Felix Geerinckx wrote:
>
> > on Wed, 15 May 2002 09:30:04 GMT, [EMAIL PROTECTED]
> > (Stefan Haberer) wrote:
> >
> >> if ( 0 <= $avg_speed <= 5 ) { $speed_cost_code
> >
> > You need
> >
> > if ( 0 <= $avg_speed && $avg_speed <= 5 ) { ... }
>
> is there any issue with using 'and' one way or
> the other....
>
>
> ciao
> drieux
>
> ---
Yes, the symbol versions of and, or, etc. bind tighter than the word
versions. For example this does not do what you would want it to:
open FH, "test" || die "Failed to open test:$!";
since the || operator has a higher precedence than functions. The
compiler sees this as
open FH, ("test" || die "Failed to open test:$!");
What you want is
open FH, "test" or die "Failed to open test:$!";
which the compiler sees as
(open FH, "test") or (die "Failed to open test:$!");
--
Today is Setting Orange the 62nd day of Discord in the YOLD 3168
Hail Eris!
Missile Address: 33:48:3.521N 84:23:34.786W
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]