in reply to Re: writing perl function like sql IN
in thread writing perl function like sql IN
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) { ... }
|
|---|