Subject: | Compatibility with the upcoming perl 5.14 |
Hi Jeff,
I know YAPE::Regex is deprecated in favour of Regexp::Parser, but there
is real-world code depending on YAPE::Regex, so it would be great if you
could update it to support Perl 5.14. There are several changes to the
regex engine, but the only one that I know of to break YAPE::Regex big
time is that the default modifiers are now stringified to ^. The
perl5136delta gives this example:
The stringification of regular expressions now uses this
notation. E.g., before, C<qr/hlagh/i> would be stringified as
C<(?i-xsm:hlagh)>, but now it's stringified as C<(?^i:hlagh)>.
The main purpose of this is to allow tests that rely on the
stringification to not have to change when new modifiers are added.
See L<perlre/Extended Patterns>.
This means that the ^ will be VERY common even in old code that doesn't
magically start using new features. This is why I think it would be very
important to support it even in case YAPE::Regex doesn't support some
other features of, say 5.10, the big regexp overhaul.
I expect the necessary change to be small (for someone who understands
the code base) and to be more of a special case hack than any kind of
big modification. Any chance to get this done before 5.14 is released?
If not, a lot of code using YAPE::Regex to parse regexes will simply not
work on 5.14.
Best regards,
Steffen