in reply to Re^4: Dumping regexp for Perl versions earlier than 5.14
in thread Dumping regexp for Perl versions earlier than 5.14
I want a code generator that, even though run from perl 5.14+, can generate code that runs on perl 5.12 and lower.
Unless I'm missing a CPAN module capable of stringifying regexes, I'm afraid you won't get that from Perl itself: I believe the relevant commit is fb85c0447bf1, it looks like the stringification behavior is not configurable. The change was discussed, including compatibility, on P5P, e.g. here.
If you really don't like the two suggestions from perl5140delta, then you might actually want to consider using an older Perl to generate your regex strings.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Dumping regexp for Perl versions earlier than 5.14
by Anonymous Monk on Jan 06, 2015 at 07:20 UTC | |
by Anonymous Monk on Jan 06, 2015 at 08:09 UTC | |
by Anonymous Monk on Jan 06, 2015 at 08:39 UTC | |
by Anonymous Monk on Jan 06, 2015 at 09:18 UTC |