in reply to Re: if and
in thread if and
The case scenario given is that two conditions must be true for a true result to the expression - The order of developer logic should follow testing each condition individually and then applying the AND logic to the condition results. The application of conditions within parentheses as given by BeernuT follows this order.
With the code given, this only works because of the precedence of operands as described in perlop.
Update
By failure of development logic, I refer not to the deparsing of code, because as highlighted by blakem below (++blakem), the result is identical, but rather the logic driving the writing of the code. In this instance, Anonymous Monk voiced confusion in order and syntax, presumably the result of trying to merge everything together without respect to the individual order of elements within the logic process.
This node was intended to direct discussion towards cause moreso than effect.
perl -e 's&&rob@cowsnet.com.au&&&split/[@.]/&&s&.com.&_&&&print'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re3: if and
by blakem (Monsignor) on Feb 20, 2002 at 08:17 UTC | |
by vek (Prior) on Feb 20, 2002 at 16:23 UTC |