in reply to Re: map it back jack
in thread map it back jack

This even more than the rest has the problem of modifying the @elements array. In this case, it empties it.

Replies are listed 'Best First'.
Re: Re: Re: map it back jack
by turnstep (Parson) on Dec 16, 2000 at 04:53 UTC
    Why is it a problem? The original question never asks that the array remained untouched, merely (implied) that "for[each]" should not be used. Why not remove each element as we put it in the hash? :) TMTOWTDI