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]
- Re: New syntactic sugar builtin: in Markus Peter
- Re: New syntactic sugar builtin: in David L. Nicol
- Re: New syntactic sugar builtin: in Damian Conway