in reply to Re: Interesting Use of Grep
in thread Interesting Use of Grep

Good point. I think i think too much in the SQL i've been working with when I wonder why i can't just say

if( $variable in (LIST) ) { #do something... }

Replies are listed 'Best First'.
Re: Re: Re: Interesting Use of Grep
by John M. Dlugosz (Monsignor) on Jun 29, 2001 at 03:27 UTC
    Really! There is a list module somewhere. But in general why limit it to == operation? A general select (map-like but not 1:1) would be good, and it can early-out in boolean context.