in reply to Learning to use "each"
each is “a really-nifty language feature” that is not entirely without its own peculiar set of ... ahhhh ... “issues.” This function, convenient though it certainly is, does rely upon a bit of “hidden” contextual information that can, shall we say, “surprise you” if you happen to be using it in nested-loops or other “tricky” situations. For this reason, some folks love to use it, while other folks studiously find other ways to do the same thing. (Fortunately, “this is Perl.” TMTOWTDI™ ...)