"raptor" <[EMAIL PROTECTED]> writes:

> > ...and have some_func know it is being called in an iterator context
> > and be able to create it's own iterator. foldr could then be
> > done as...
> 
> I think may have not only list,scalar,iterator .... context. But some way to
> define CONTEXT itself, I don't have idea how ?
> array context, boolean context , hash context f.e.
> 
> @a == @b   #compare all elements

What happens when you want the current value of @a == @b? 

> %x == %c   #compare all key/value pairs of the hash
> %c = %b    # copy only those key/value pair that exist in both hashes

Err... changing = to have a meaning other than assignment seems to me
to be somewhat foolhardy. *Especially* as the example you cite is
already meaningful and useful.

-- 
Piers

Reply via email to