But last also works for anonymous blocks, which aren't loops. (Aren't they? Don't know about you tovarisch, but my anonymous blocks execute just once.)From: Larry Wall <[EMAIL PROTECTED]> "last" almost works, except it's specific to loops
In fact, that's why I asked. I have a lot of code that looks like this:
FOO:
{
last FOO if $bar;
...
last FOO if $blah;
...
last FOO if $jonesie;
...
# if we get this far then we passed all the tests
...
}
That first check, where I go into a block and then exit it immediately, that just somehow feels wrong. It feels like it oughta be an if, but then I can't last out of the if.
_________________________________________________________________
Choose an Internet access plan right for you -- try MSN! http://resourcecenter.msn.com/access/plans/default.asp