[Cascavel-pm] Loop dentro de outro loop
Wendel Scardua
wendelscardua em gmail.com
Terça Setembro 11 11:52:48 PDT 2007
No seu caso em particular...
while ( << foo >> ) {
if ( $something ) { next; }
foreach ( << foo2 >> ) {
(...)
if ( $otherstuff ) { last; }
(...)
}
next;
}
[]s
Wendel
On 9/11/07, Otávio Fernandes <otaviof em gmail.com> wrote:
>
> Senhores,
>
> Estou com a seguinte situação:
>
> -------
> while ( << foo >> ) {
>
> if ( $something ) { next; }
>
> foreach ( << foo2 >> ) {
> (...)
> if ( $otherstuff ) { goto next; }
> (...)
> }
>
> w_next: next;
>
> }
> -------
>
> Porem, como um programador C, eu não vejo o goto como uma boa
> alternativa, em termos de codificação, vocês conhecem alguma
> alternativa para o meu caso ?
>
> um abraço,
>
>
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://mail.pm.org/pipermail/cascavel-pm/attachments/20070911/f81ea5ad/attachment.html
Mais detalhes sobre a lista de discussão Cascavel-pm