We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bbf6789 + f7e9896 commit d7c519dCopy full SHA for d7c519d
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/perl/edalmava.pl
@@ -0,0 +1,28 @@
1
+use Modern::Perl '2015';
2
+use autodie;
3
+
4
+# Comentario en perl
5
+# Sitio oficial: https://www.perl.org/
6
+# En Perl las variables tienen un símbolo que indica el tipo del valor de la variable
7
8
+# Variables Escalares (Usan el signo de dólar $)
9
+my $escalares;
10
11
+# Variables de Matriz - Arreglos (usan el signo at @)
12
+my @arreglo;
13
14
+# Variables Hash (usan el signo de porcentaje %)
15
+my %hash;
16
17
+# Strings
18
+my $perl_language = "Perl";
19
20
+# Números
21
+my $integer = 42;
22
+my $float = 0.007;
23
+my $sci_float = 1.02e14;
24
+my $binary = 0b101010;
25
+my $octal = 052;
26
+my $hex = 0x20;
27
28
+print "¡Hola, ", $perl_language, "!\n";
0 commit comments