Em Seg, 2008-12-08 às 12:08 +0100, Carl Mäsak escreveu: > Daniel (>), Carl (>>): > That is all good and well for exiting the map itself; but what I want > to achieve is to exit the surrounding sub or method block. Example:
Er... I mean actually the opposite... it should always return from the surrounding sub or method, never only from "map", if you want to "end" the map loop, you should use "last"... meaning... sub foo { map { last; }, 1, 2, 3; # executes the block only once map { return; }, 1, 2, 3; # returns from &foo; } daniel