[Cascavel-pm] Duvida ao ler arquivo
igor em izut.com
igor em izut.com
Terça Abril 25 10:14:43 PDT 2006
Quoting Solli Moreira Honorio <shonorio em terra.com.br>:
> Eu particularmente não concordo. Sinceramente o marcador me faz lembrar o
> Basic com o GOTO da vida.
Apimentando a discussão (retirado de perlstyle):
· Don’t go through silly contortions to exit a loop at the top or
the bottom, when Perl provides the "last"
operator so you can exit in the middle. Just "outdent" it a little
to make it more visible:
LINE:
for (;;) {
statements;
last LINE if $foo;
next LINE if /^#/;
statements;
}
· Don’t be afraid to use loop labels--they’re there to
enhance readability as well as to allow multilevel loop
breaks. See the previous example.
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Mais detalhes sobre a lista de discussão Cascavel-pm