in reply to Re: Worrying regex issue with 5.8.0
in thread Worrying regex issue with 5.8.0

Thanks Tommy - saved me from submitting a duplicate bug report.

Ok, so Data::Dumper is not the issue. Is it your understanding that any regex which uses /x and which contains a hash (even in a character class) which is not followed by a newline will potentially corrupt memory? If so, that is pretty grim. The instruction would then be:

Before upgrading to 5.8.0, check every regex which uses /x. For each one which contains a # not followed by newline, add the text # FIXME - workaround for bug #17776->newline here

Cheers, Kevin

Replies are listed 'Best First'.
Re: Re: Re: Worrying regex issue with 5.8.0
by tommyw (Hermit) on Nov 15, 2002 at 11:37 UTC

    Yes, or take the spaces out, and then dump the /x modifier. If you insist on keeping the original nicely formatted with spaces, then just pump it through s/ //g before passing it to qr (which was my solution). Obviously, this needs a certain amount of care too.

    --
    Tommy
    Too stupid to live.
    Too stubborn to die.

      Yep. I am sure we'll cope :-) Thanks again for spotting this (although, as the raiser of the bug report, I am not surprised it rang a bell :-).

      Glad to have got to the end of this and to have avoided gumming up the works with a duplicate bug report.

      Cheers, Kevin