"Brian L. Matthews" <blm@halcyon.com> writes: >Chris Nandor writes: >|%ENV on MacPerl is especially magic. You might also notice that >|while(($k,$v)=each(%ENV)) does not work. The basic idea is that for each() >|or exists() to work, the KEY has to be invoked first: > >So are you saying this behavior is on purpose? If so, I don't like it. :-) Chris probably didn't mean that. All that "magic" means in this context is that %ENV is subtle and quick to anger :-) I don't disagree that each() and exists & so on should work correctly on %ENV, but that requires changes in the hash code that I will not make by myself without consulting with p5p. Matthias ----- Matthias Neeracher <neeri@iis.ee.ethz.ch> http://www.iis.ee.ethz.ch/~neeri "Wirklich, ich lebe in finsteren Zeiten! // Das arglose Wort ist toericht. Eine glatte Stirn // Deutet auf Unempfindlichkeit hin. Der Lachende // Hat die furchtbare Nachricht // Nur noch nicht empfangen." -- Bertolt Brecht, _An die Nachgeborenen_ ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch