in reply to Re: Re: Spurious re 'eval'; warning ?
in thread Spurious re 'eval'; warning ?

My apologies, seems as though you were right. However, I found an interesting section in perl5005delta:
%s: Eval-group not allowed at run time
(F) Perl tried to compile a regular expression containing the (?{ ... }) zero-width assertion at run time, as it would when the pattern contains interpolated values. Since that is a security risk, it is not allowed. If you insist, you may still do this by explicitly building the pattern from an interpolated string at run time and using that in an eval(). See perlre/(?{ code }).
Perl just doesn't seem to like what you're doing and stops it ;-).
Hope this helps.
Cheers, CombatSquirrel.

Update: fixed typos.
  • Comment on Re: Re: Re: Spurious re 'eval'; warning ?

Replies are listed 'Best First'.
Re: Re: Re: Re: Spurious re 'eval'; warning ?
by diotalevi (Canon) on Aug 24, 2003 at 15:06 UTC

    I noted elsewhere that it was probably wrong of perl to *not* throw an error when bsb prepended the 'qr' onto the internal regex. So you're exactly right.