- or download this
# is it a range or a single line?
if ($info =~ /(\d+)-(\d+)/) {
...
} else {
$changes{$file} = [$info];
}
- or download this
if ($info =~ /(\d+)-(\d+)/) {
$changes{$file} .= " ".join(" ",($1 .. $2))." ";
} else {
$changes{$file} .= " $info ";
}
- or download this
...
if (defined $changes{$file}) {
...
next unless ($changes{$file} =~ / $line /);
}
...