CC: | regexp-common [...] abigail.nl |
Subject: | Variables not available |
With Perl 5.9.5, I get warnings when loading Regexp::Common:
$ perl5.9.5 -w -MRegexp::Common -e 1
Variable "$s" is not available at (re_eval 23) line 1.
Variable "$x" is not available at (re_eval 23) line 1.
(This does not happen with Perl 5.8.8.)
"perl -d" shows that this happens at line 292 of
Regexp::Common::comment. I think the variables in question there should
be declared inside the "(?{ ... })" assertion within the regular
expression to solve this issue.
Regards,
fany