Damian Conway <[EMAIL PROTECTED]> writes: > > Does any other RFC give the equivalent to an 'in' operator? > > and my forthcoming superpositions RFC will offer: > > if ($a == any(@b) ) { ... } > and: > if ($a eq any(@b) ) { ... } > and: > if ($a != any(@b) ) { ... } > and: > if (any(@a) == any(@b) ) { ... } > and: > if (all(@a) eq any(@b) ) { ... } > etc. > > which I think is by far the cleanest solution. :-) Yes. That's exactly what I was looking for. =) -- / Jonas - http://jonas.liljegren.org/myself/en/index.html
- Re: $a in @b John Porter
- Re: $a in @b Damian Conway
- Re: $a in @b David L. Nicol
- Re: $a in @b David L. Nicol
- Re: $a in @b Bart Lateur
- Fwd: RE: $a in @b Ed Mills
- Re: Fwd: RE: $a in @b Tom Christiansen
- Re: Fwd: RE: $a in @b Piers Cawley
- Re: Fwd: RE: $a in @b John Porter
- Re: $a in @b Damian Conway
- RE: $a in @b Jonas Liljegren
- RE: $a in @b Garrett Goebel
- Re: $a in @b Bart Lateur
- Re: $a in @b Damian Conway
- Re: $a in @b Bart Lateur
- Re: $a in @b Jarkko Hietaniemi
- Re: $a in @b John Porter
- Re: $a in @b Damian Conway
- Re: $a in @b Jarkko Hietaniemi
- Re: $a in @b Damian Conway
- Re: $a in @b Steve Fink