in reply to Regex bug or head made of solid bone?

I don't know what exactly your question is. You show us some code, its output, and then just wonder if you are missing something. *I* certainly am missing something, namely your expectation of what the code should do.

But I take an educated guess. You are baffled by the behaviour of \Q and \E. One should realize that \Q and \E are dealt with in the interpolation stage, which happens before a regex is compiled. I refer to the section "Gory details of parsing quoted constructs" in the perlop manual.

Abigail

  • Comment on Re: Regex bug or head made of solid bone?

Replies are listed 'Best First'.
Re: Re: Regex bug or head made of solid bone?
by alien_life_form (Pilgrim) on Jun 07, 2002 at 09:06 UTC
    Greetings,

    After more grinding, my question actually became two questions. The first is actually about single quoting. The second one is addressed by your guess.

    (And I surely thought that my original post contained sections that qualify as 'some code' and 'output' but this may not be relevant at this point.)
    Cheers,
    alf


    You can't have everything: where would you put it?