mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00: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:
parent
2dde374091
commit
3bc441d466
@ -152,7 +152,7 @@ while (condition) {
|
|||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
|
||||||
|
my $max = 5;
|
||||||
# for loops and iteration
|
# for loops and iteration
|
||||||
for my $i (0 .. $max) {
|
for my $i (0 .. $max) {
|
||||||
print "index is $i";
|
print "index is $i";
|
||||||
|
Loading…
Reference in New Issue
Block a user