Evaluar una variable en Perl
Publicado: 2012-07-19 10:14 @468
¡Hola!
Estoy aprendiendo Perl y quiero saber si puedo evaluar una variable como se hace en Cobol. Ejemplo:
Les agradezco si me pueden ayudar, este es el único medio por el cual estoy aprendiendo Perl.
Att: Chascarrilla
Estoy aprendiendo Perl y quiero saber si puedo evaluar una variable como se hace en Cobol. Ejemplo:
Using cobol Syntax Highlighting
- EVALUATE X
- WHEN 0
- CONDICION 1
- WHEN 1
- CONDICION 2
- WHEN 2
- CONDICION 3
- WHEN OTHER
- CONDICION 4
- END-EVALUATE;
Coloreado en 0.004 segundos, usando GeSHi 1.0.8.4
Les agradezco si me pueden ayudar, este es el único medio por el cual estoy aprendiendo Perl.
Att: Chascarrilla