Re: The sperm secret operator: is it new?
John Douglas Porter <[email protected]> Wed, 14 Mar 2012 07:48:35 -0700 (PDT)
| Newsgroups | gmane.comp.lang.perl.fun |
|---|---|
| Message-ID | <[email protected]> |
=0ASo is that the Perl 6 smart match operator? or something else?=0AIn any = case... How does it work here? It looks like it's functionally=0Aequivalen= t to scalar()... but why?=0A-- =0Ajdporter=0A=0A=0A--- On Wed, 3/14/12, Phi= lippe Bruhat (BooK) <[email protected]> wrote:=0A=0A> From: Philippe = Bruhat (BooK) <[email protected]>=0A> Subject: Re: The sperm secret o= perator: is it new?=0A> To: [email protected]=0A> Date: Wednesday, March 14, 201= 2, 8:29 AM=0A> On Wed, Mar 14, 2012 at 12:36:10PM=0A> +0100, Philippe Bruha= t (BooK) wrote:=0A> > Hi,=0A> > =0A> > While doing some tests/research on s= ecret operators, I=0A> stumbled upon this=0A> > one in my one-liners:=0A> >= =0A> >=A0 =A0=A0=A0~~<>=0A> > =0A> > Obviously, this should be named "the = sperm operator".=0A> It's only useful=0A> > in list context. Just like sper= m cells work better when=0A> there are many=0A> > of them. ;-)=0A> > =0A> = =0A> Example usage:=0A> =0A> =A0=A0=A0# the first three lines constitute th= e=0A> header=0A> =A0=A0=A0@header =3D ( ~~<>, ~~<>,=0A> ~~<> );=0A> =0A> --= =0A> Philippe Bruhat (BooK)=0A> =0A> The only way to get a better govern= ment is to get better=0A> voters.=0A> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=0A> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=0A> =A0=A0=A0(Moral from Groo The Wanderer = #109=0A> (Epic))=0A>