While en Lenguaje Perl šŸ„‡ Foro Lenguajes de ProgramaciĆ³n

Foros de discusiĆ³nForo de Lenguajes de ProgramaciĆ³n

#1:  While en Lenguaje Perl  Autor: Aforo Enlaces Publicado: Lun Mar 31, 2008 4:39 pm
    ----
En el siguiente ejemplo explicamos como hacer un bucle while en Perl.
La explicaciĆ³n estĆ” en forma de comentarios embebida en el mismo texto.

Quote::
#!/usr/bin/perl

# Inicializo la variable Contador ($cnt)
$cnt = 0;

# Comienzo el bucle While
while ($cnt <= 7) {
# Imprimo la variable y nueva linea: \n
print "$cnt\n";
# Incremento el contador
$cnt ++;
}





Foros de discusiĆ³nForo de Lenguajes de ProgramaciĆ³n

Todas las horas son GMT + 1 Hora

PƔgina 1 de 1 - Tema con 1 Mensajes y 12129 Lecturas

DiseƱo web, bases de datos, lenguajes de programaciĆ³n, comunidades... todo lo necesario para construir tu sitio web.
The logos and trademarks used on this site are the property of their respective owners. We are not responsible for comments posted by our users, as they are the property of the poster.
Aviso Legal - Privacidad Construyendo la web 2.0
The logos and trademarks used on this site are the property of their respective owners. We are not responsible for comments posted by our users, as they are the property of the poster.
Aviso Legal - Privacidad