On 27.02.2013 10:23, Dr.Ruud wrote: > On 2013-02-26 16:59, Darin McBride wrote: > >> (I'd _almost_ argue for 'eq' and kin to accept the topic, >> making the above "my @bar = any { eq 'a' } qw(a b c)", but that's too >> far.) > > Implement it as _eq :) sub _eq { $_ eq $_[0] } ... but of course that doesn't work with lexical $_. -- Lukas Mai <l.mai@web.de>Thread Previous | Thread Next