in reply to Re: /ee regex modifier
in thread /ee regex modifier

Apparently it is behaving like that. I don't understand why the first eval is being passed a '$1' instead of a "$1" though. What happened to "The right hand side of a s/// is a double quoted string"? If /e is an exception, are there any other exceptionis? I haven't been able to find this quirk noted in perlre or perlop.

Update: The original code has a vestigial 'no strict refs' which has no bearing on the code following it. (its left over from the symref suggestion for expanding global vars)

-Blake q

Replies are listed 'Best First'.
Re: Re: Re: /ee regex modifier
by chip (Curate) on Nov 14, 2001 at 07:09 UTC
    I'd call it a bug, unless of course it's just poetry mode in action. But that would be a bug too, becuase you have struct 'subs' in effect. OK, it's a bug.

        -- Chip Salzenberg, Free-Floating Agent of Chaos

      A bug as in "too bad perl implemented it that way" or as in "time to dig into regcomp.c and whip out perlbug." Would you categorize it as a real bug that needs fixing or a just quirk of the language?

      -Blake