http://www.perlmonks.org?node_id=287217


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

Date: 27 Aug 2003 12:47:56 -0000 From: Rafael Garcia-Suarez (via RT) Subject: Re: [perl #23569] use re 'eval'; lost in (??{"(?{1})"}) Brad Bowman (via RT) wrote: > This code generates an "Eval-group ..." error despite the presense > of "use re qw(eval)". > > $ perl -Mre=eval -e '/ (??{ "(?{1})" }) $_ /x' > Eval-group not allowed at runtime, use re 'eval' in regex m/(?{1})/ +at -e line 1. This is apparently just another instance of the compiler hints not bei +ng propagated to eval-strings (except "integer", "strict refs" and a few others). This can't be fixed non-kludgily without an overhaul of the h +int system.