Patch provided by Daniel Klein <danielklein-à-airpost.net> :
I noticed a very subtle bug in the code: it filters out all detected POD
from the source code. This means that any line number reporting after
POD code will be out by the number of POD lines removed. So if there is
an error or a "warn"ing in the code it will be harder for the programmer
to track down.
}
next component;
}
- if ($source =~ m/\G\s*($pod_or_DATA)/gc) {
+ if ($source =~ m/(\G\s*$pod_or_DATA)/gc) {
+ $text .= $1;
next component;
}
@pos = Text::Balanced::_match_variable(\$source,qr/\s*/);