I'd like to see a new builtin named "in" which does the same as "in" in SQL.
Basically,

 print "OK!" if $val in ("foo","bar","bla");

is the same as

 print "OK!" if grep { $_ eq $val } ("foo","bar","bla");

or

 print "OK!" if $val eq "foo" or $val eq ....

except it's a lot more compact, intuitive to use and readable...

-- 
Markus Peter - SPiN GmbH
[EMAIL PROTECTED]

Reply via email to