1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-07-31 12:00:34 +02:00

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
This commit is contained in:
Mike Shlanta
2019-05-01 12:39:29 -05:00
committed by GitHub
parent 2dde374091
commit 3bc441d466

View File

@@ -152,7 +152,7 @@ while (condition) {
...
}
my $max = 5;
# for loops and iteration
for my $i (0 .. $max) {
print "index is $i";