From 3bc441d4666b058f116949a60977adb79224dc62 Mon Sep 17 00:00:00 2001 From: Mike Shlanta Date: Wed, 1 May 2019 12:39:29 -0500 Subject: [PATCH] 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 --- perl.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";