On Fri, 1 Nov 2002, it was written:

> On Fri, Nov 01, 2002 at 10:35:08AM -0800, Ed Peschko wrote:
> > So again, I don't see the difference between the two. ^[+]= and ^+= are synonyms
> > as far as I can see, and hence no need for the first form.
>
> Only in the absence of overloading, and only because we've naively
> defined array ops to always do "union" rather than "intersection".
> If there were a vector op that took the shorter of two arrays as the
> overall length, then
>
>     @a = @a »op« @b

Ooo!  I have it!

   @a »op« @b   # picks the shorter of the two lengths  (intersection)
   @a «op» @b   # picks the longer of the two lengths   (union)

Maybe the hyper-hash guys could work with it too.

~ John Williams

Reply via email to