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

Reply via email to