in reply to Re: Get out of "For Loop"!
in thread Get out of "For Loop"!

But to quote from one of the holy books (Perl Best Pratices, Chapter 6.4):
Don't use unless or until at all.

So instead if unless($email) rather use if(! $email)

Replies are listed 'Best First'.
Re^3: Get out of "For Loop"!
by TomDLux (Vicar) on Oct 18, 2010 at 15:14 UTC

    Damian is sometimes wrong. Shhh! Don't tell anyone.

    I prefer unless() as a suffix. I do agree that an unless() block should not have an else ... negating the negation warps my mind this early on a Monday morning. But it doesn't need one, since the next / last goes to the next iteration of the loop.

    As Occam said: Entia non sunt multiplicanda praeter necessitatem.