Note that it is necessary to use defined(), as first() returns the first matching element (which may be zero), not a list.if (defined first { $x == $_ } 1, 3, 7) { ... }
In reply to Re^2: writing perl function like sql IN
by eserte
in thread writing perl function like sql IN
by JAMBOID
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |