Re: [dha@panix.com: Re: ^=~]

2002-01-24 Thread Larry Wall
=?iso-8859-1?q?Jonathan=20E.=20Paton?= writes: : > : > >Damian Conway [mailto:[EMAIL PROTECTED]] wrote: : > > : > >You *could* instead consider reversing the arguments to : > all the list : > >manipulation operators: : > > : > > @result = map @data { mapping() } : > > @result = grep @data { s

RE: [dha@panix.com: Re: ^=~]

2002-01-24 Thread Jonathan E. Paton
[Note: I've resent this - since apparently it never made it to the list. Can someone please complain offlist if they did get the previous one?] > > >Damian Conway [mailto:[EMAIL PROTECTED]] wrote: > > > >You *could* instead consider reversing the arguments to > all the list > >manipulation ope

RE: [dha@panix.com: Re: ^=~]

2002-01-24 Thread Jonathan E. Paton
> > >Damian Conway [mailto:[EMAIL PROTECTED]] wrote: > > > >You *could* instead consider reversing the arguments to > all the list > >manipulation operators: > > > > @result = map @data { mapping() } > > @result = grep @data { selector() }; > > @result = sort @data { comparison() }; >

RE: [dha@panix.com: Re: ^=~]

2002-01-23 Thread Angel Faus
>Damian Conway [mailto:[EMAIL PROTECTED]] wrote: > >You *could* instead consider reversing the arguments to all the list >manipulation operators: > > @result = map @data { mapping() } > @result = grep @data { selector() }; > @result = sort @data { comparison() }; > @result

Re: [dha@panix.com: Re: ^=~]

2002-01-22 Thread Larry Wall
David Whipp writes: : Piers Cawley [mailto:[EMAIL PROTECTED]] wrote: : > Damian Conway <[EMAIL PROTECTED]> writes: : > > I suppose this discussion also raises the vexed question : > whether ??:: can also be put out to pasture in favour of: : > > : > > $val = if $x { 1 } else { 2 }; : : I like

RE: [dha@panix.com: Re: ^=~]

2002-01-22 Thread David Whipp
Piers Cawley [mailto:[EMAIL PROTECTED]] wrote: > Damian Conway <[EMAIL PROTECTED]> writes: > > I suppose this discussion also raises the vexed question > whether ??:: can also be put out to pasture in favour of: > > > > $val = if $x { 1 } else { 2 }; I like that idea. > Only if you can also

Re: [dha@panix.com: Re: ^=~]

2002-01-22 Thread Piers Cawley
Damian Conway <[EMAIL PROTECTED]> writes: > I suppose this discussion also raises the vexed question whether ??:: > can also be put out to pasture in favour of: > > $val = if $x { 1 } else { 2 } Only if you can also do: if $x { $x } else { $y } = 'foo'; But that looks really scary. -

Re: [dha@panix.com: Re: ^=~]

2002-01-21 Thread Damian Conway
> Hmm. A hyperdwim operator. So that means that > > @result = @a ^=~ @b > > is the same as > > @result = map -> $a; $b { $a =~ $b } (@a; @b) > > Or something resembling that that actually works... > > Hmm. I suppose it could be argued that a C in list context: > > @result = fo