Localised “topic” of for loop
my $i; foreach $i (10 .. 20) { last if $i % 7 == 0; } say "Found multiple of 7: $i";
Use of uninitialized value $i in concatenation (.) or string at ./for-loop.pl line 14. Found multiple of 7:
my $i; foreach $i (10 .. 20) { last if $i % 7 == 0; } say "Found multiple of 7: $i";
Use of uninitialized value $i in concatenation (.) or string at ./for-loop.pl line 14. Found multiple of 7: