bsb has asked for the wisdom of the Perl Monks concerning the following question:
It seems like the 'eval' hint doesn't reach the right scope at the right phase, but this is so out of my depth I'm getting the bends.$ perl -Mre=eval -e '/ (??{ "(?{1})" }) $_ /x' Eval-group not allowed at runtime, use re 'eval' in regex m/(?{1})/ at + -e line 1.
Brad
PS. These all work as I understand "use re qw/eval/" except the third:
$ perl -e '/ (?{1}) $_ /x' Eval-group not allowed at runtime, use re 'eval' in regex m/ (?{1}) / + at -e line 1. $ perl -Mre=eval -e '/ (?{1}) $_ /x' # This is the odd one $ perl -Mre=eval -e '/ (??{ "(?{1})" }) $_ /x' Eval-group not allowed at runtime, use re 'eval' in regex m/(?{1})/ at + -e line 1. $ perl -Mre=eval -e '/ (??{ qr"(?{1})" }) $_ /x'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Spurious re 'eval'; warning ?
by diotalevi (Canon) on Aug 24, 2003 at 14:01 UTC | |
by bsb (Priest) on Aug 25, 2003 at 00:24 UTC | |
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 | |
by bsb (Priest) on Aug 28, 2003 at 01:47 UTC | |
Re: Spurious re 'eval'; warning ?
by CombatSquirrel (Hermit) on Aug 24, 2003 at 10:41 UTC | |
by bsb (Priest) on Aug 24, 2003 at 12:58 UTC | |
by CombatSquirrel (Hermit) on Aug 24, 2003 at 15:01 UTC | |
by diotalevi (Canon) on Aug 24, 2003 at 15:06 UTC | |
Re: Spurious re 'eval'; warning ?
by Anonymous Monk on Apr 24, 2013 at 22:27 UTC |