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

    ... unless my reading comprehension is bad ..

    Yes, your reading comprehension is bad, the OP found a solution and is satisfied with it

      perlancar posted this after marking the problem solved, adding more info, and the reply just adds more info as well - unless you've found a technical error in it? In any case, no need for the insult.

        perlancar posted this after marking the problem solved, adding more info, and the reply just adds more info as well - unless you've found a technical error in it? In any case, no need for the insult.

        It appears my insult did not have the intended effect -- you did not review your statement

        Sorry about that, I'll try to explain

        Your reply seems rude, it wouldn't if you said something like here are some more related links and then not talk about things perlancar knows doesn't know or should or shouldn't do if or if not some condition

        Unless I'm missing ...
        I'm afraid you won't ...
        Yes, the OP already knows this, it was his original question, which he answered, twice now
        I believe ...
        great, some related technical details (good job)
        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.
        The OP says he found a solution , that means he likes it

        And I conclude my statement with

        In any case, no need for the insult.