develooper Front page | perl.perl5.porters | Postings from September 2012

Re: fixing smartmatch just hard enough (and when, too)

Thread Previous | Thread Next
From:
Aaron Priven
Date:
September 1, 2012 07:33
Subject:
Re: fixing smartmatch just hard enough (and when, too)
Message ID:
72EE7FDC-721A-4322-817F-3158D1AA59DB@priven.com
is it possible to add a binary infix operator in a Perl 5 module?

On Aug 17, 2012, at 5:06 AM, Eirik Berg Hanssen wrote:

> On Fri, Aug 17, 2012 at 12:39 PM, Ed Avis <eda@waniasset.com> wrote:
> Hmm, I understand the enthusiasm for magic junction types like 'any', since
> Perl 6 has them, and Perl 6 is somehow related to Perl 5 in some way, but I
> still feel that a simple 'in' operator would be far more straightforward.
> 
>     if ($x in @a)
> 


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About