On Tue, Jul 31, 2001 at 03:50:56PM +0200,  Marc A. Lehmann  wrote:
> 
> however, if it did, then this would be a very common error. how do you
> force void context currently? and list context? it's possible, of course,
> but it's extreme action at-a-distance.

    do {{EXPR; last}}

forces void context on EXPR.

    do {() = EXPR}

forces list context on EXPR.

> it's similar, yes, and only being able to iterate once over a hash even
> in totally different modules by different authors is an extremely nasty
> thing, even if it occurs rarely in practise (it bite me about three times
> in the last 6 years)

If clashes with iteration is the worst thing that can happen if you share
hashes between different modules by different authors, I will change my
mind about the usefulness of lexical variables.



Abigail

Reply via email to