> Does any other RFC give the equivalent to an 'in' operator?


RFC 22 offers:

        switch ($a) {
                case (@b) { ... }
        }


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. :-)

Damian

Reply via email to