summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMike Shlanta <sdshlanta@gmail.com>2019-05-01 12:39:29 -0500
committerGitHub <noreply@github.com>2019-05-01 12:39:29 -0500
commit3bc441d4666b058f116949a60977adb79224dc62 (patch)
treeb3bf238c46c89dc83b65e32ae0359e2782e32909
parent2dde374091366cb098e5d405daa9c4c4c469b6dc (diff)
Fixed variable not declared before use.
The variable `max` was not declared before use in demonstrating how for loops work over ranges. It has been added on line 155 and set to a value of 5
-rw-r--r--perl.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.html.markdown b/perl.html.markdown
index 17a538e3..08001ab0 100644
--- a/perl.html.markdown
+++ b/perl.html.markdown
@@ -152,7 +152,7 @@ while (condition) {
...
}
-
+my $max = 5;
# for loops and iteration
for my $i (0 .. $max) {
print "index is $i";