On Nov 8, Mark Johnson said:

>In C you can "break" out of a for loop and go on to the next series of
>statments. How do you do this in PERL?

You probably want 'last'.

You can also label blocks of code to jump out of deeply nested loops.

  perldoc -f next
  perldoc -f last

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to