Re: How do you continue in a for loop?
- From: Azazel <azazel@xxxxxxxxxx>
- Date: Tue, 31 Jul 2007 18:34:36 +0000 (UTC)
On 2007-07-31, Thierry <lamthierry@xxxxxxxxx> wrote:
In other languages, the for loop has a continue statement feature to
skip an interation, how do you do it in perl?
"next". For example:
for (my $i = 0; $i < 10; ++$i)
{
if ($i == 7)
{
next;
}
else
{
print $i, "\n";
}
}
.
- Follow-Ups:
- Re: How do you continue in a for loop?
- From: Azazel
- Re: How do you continue in a for loop?
- References:
- How do you continue in a for loop?
- From: Thierry
- How do you continue in a for loop?
- Prev by Date: How do you continue in a for loop?
- Next by Date: Re: How do you continue in a for loop?
- Previous by thread: How do you continue in a for loop?
- Next by thread: Re: How do you continue in a for loop?
- Index(es):