Hi Chris, Use loop breaks such as last, next, goto etc eg @arr=qw(1 3 4 2 4 5); foreach $number(@arr) { last if($number == 2); print "$number"; } HTH Regards Babylakshmi M _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
- Breaking out of foreach loop CDitty
- Breaking out of foreach loop Webmaster
- Re: Breaking out of foreach loop Jos I. Boumans
- Re: Breaking out of foreach loop Rachel Coleman
- baby lakshmi