Permalink
Browse files

Avoid variable name clash.

  • Loading branch information...
1 parent 21d6178 commit 72e52525409208cae7e7f3c37d0c336b0b42b6ab @bacek bacek committed Feb 22, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 Deprecations.pm
View
@@ -31,9 +31,9 @@ method check_file($file, $yaml) {
my $fh := pir::new('FileHandle');
$fh.open($file);
my $line := 1;
- while $fh.readline -> $line {
+ while $fh.readline -> $l {
for @regexes -> $regex {
- if $line ~~ $regex {
+ if $l ~~ / $regex / {
@deprecations.push("$line: $regex");
}
}

0 comments on commit 72e5252

Please sign in to comment.