Commit f619c8ce authored by Annamalai Gurusami's avatar Annamalai Gurusami

In perl, to break out of a foreach loop we need to use

the keyword "last" and not "break".  Fixing the failing
test case. 
parent bcc3d5ce
...@@ -33,7 +33,7 @@ foreach $line (reverse @lines) { ...@@ -33,7 +33,7 @@ foreach $line (reverse @lines) {
++$count; ++$count;
print "$line"; print "$line";
if ($count == 2) { if ($count == 2) {
break; last;
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment