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]

Reply via email to