Re: New syntactic sugar builtin: in

2000-08-22 Thread David L. Nicol
This sounds like another job for the macro language. Anyone have any idea what the macro language should look like, aside from that the variables in it which will get replaced might wear hats? defining -language-macro might be premature because identifying what suggestions and shortcuts make

Re: New syntactic sugar builtin: in

2000-08-21 Thread Damian Conway
> 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"); Wait for the superpositions RFC: print "OK!" if $val eq any("foo","bar","bla"); print "OK!" if $val =~ any(qr/fo+/,qr/bl?ar?/