in reply to Rules based Perl
Comparing single values against a list of values isn't too hard.
use List::Util qw[ min max ]; if( $X < min( $a, $b, $c ) and $Y > max( $a, $b, $c ) or $Z < min( $b, $c, $d ) ) { # do something }
The lists can equally be arrays of as many values as you need.
Unfortunately, the example is incomplete. I couldn't find a state diagram for 'possibly' :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Rules based Perl
by thor (Priest) on Nov 06, 2003 at 13:23 UTC | |
by BrowserUk (Patriarch) on Nov 06, 2003 at 21:21 UTC |