On Sun, Dec 08, 2002 at 09:35:16PM -0800, Dave Whipp wrote:
> is to use an alphabetic name (e.g. || vs or). perhaps the we
> could name this operator C<pp>: its vaguely remenicent of the
>
> @out = @in
> pp map { foo }
> pp grep { bar }
> pp sort { $^a <=> $^b }
I like the idea of an alphabetic operator name here, but I would like to find
something other than 'pp', for two reasons:
1) to me, pp looks too much like one of the quote operators
2) it isn't particularly self-documenting (not that qq or grep or whatever
are, but...)
My suggestion would be one of the following:
to, after, sendto, into, thru
@out = @in to map { foo } to grep { bar } to sort { $^a <=> $^b }
@out = @in after map { foo } after grep { bar } after sort { $^a <=> $^b }
@out = @in sendto map { foo } sendto grep { bar } sendto sort { $^a <=> $^b }
@out = @in into map { foo } into grep { bar } into sort { $^a <=> $^b }
@out = @in thru map { foo } thru grep { bar } thru sort { $^a <=> $^b }
I'm not deliriously happy with any of these, but I think 'to' and
'after' are the best of the lot. Anyone else have a better
suggestion?
--Dks