in reply to Re: Re: Why Doesn't each() DWIM?
in thread Why Doesn't each() DWIM?

Perl already does what I mean in this case. If it did what you wanted, my expectations would be violated. Also, let's say that at the end of a loop the iterator on each() was reset, how would you get the behavior where it wasn't reset when you need it?

Replies are listed 'Best First'.
Re: Re: Re: Re: Why Doesn't each() DWIM?
by enoch (Chaplain) on May 27, 2004 at 22:37 UTC
    how would you get the behavior where it wasn't reset when you need it?

    ++

    Good point