in reply to Re: IF Statement Testing
in thread IF Statement Testing
if ($expire !~ any(1|2|3|4|5|6|7|8|9|10|11|12|13|14)){...}
Update: thanks gaal for lighting me up, although, I can not entirely grasp, what is the problem above...:-). Intuitively, $x ~~ none(...) should give the same result as $x !~ any(...), or at least, my intuition suggests this...
Anyway, here is an updated syntax that even more resembles to the OP's idea, and it actually works right in Pugs:
Interestingly, Pugs requires parens around the if condition. Is this a bug?if (!($expire ~~ 1|2|3|4|5|6|7|8|9|10|11|12|13|14)) {...}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: IF Statement Testing
by gaal (Parson) on May 14, 2005 at 09:32 UTC | |
by TimToady (Parson) on May 14, 2005 at 16:49 UTC |