in reply to Re: Spurious re 'eval'; warning ?
in thread Spurious re 'eval'; warning ?
Maybe. Although putting another eval string around it doesn't seem to change anything:
perlre has an explicit distinction for interpolating qr// objects (under (?{}) instead). The problem is that I do use re "eval", but perl seems to forget. It does seems a little bug-ish, I'll perlbug it.$ perl -Mre=eval -e '/ (??{ eval "qr<(?{1})>" }) $_ /x' $ perl -Mre=eval -e '/ (??{ eval "q<(?{1})>" }) $_ /x' Eval-group not allowed ...
perlre: (?{ })
For reasons of security, this construct is forbidden if
the regular expression involves run-time
interpolation of variables, unless the perilous
"use re 'eval'" pragma has been used (see re),
or the variables contain results of "qr//"
operator (see "qr/STRING/imosx" in perlop).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Spurious re 'eval'; warning ?
by diotalevi (Canon) on Aug 25, 2003 at 00:33 UTC | |
by bsb (Priest) on Aug 26, 2003 at 12:18 UTC | |
by diotalevi (Canon) on Aug 26, 2003 at 12:21 UTC |