in reply to Re^7: Ways to control a map() operation
in thread Ways to control a map() operation

My perception of "leave" is that you stop executing the commands in eval{}

You can do that, but as a side effect you also get to leave any surrounding block.

In fact, you can "leave" eval{} using die, too.

But that doesn't make you leave the surrounding "script" :) So it's saner to leave eval with a die rather than a last.

--
Leviathan.
  • Comment on Re^8: Ways to control a map() operation