in reply to Re: Re: (?{...code..}) regex construct causing panic: top_env in 5.8.2
in thread (?{...code..}) regex construct causing panic: top_env in 5.8.2

Agreed. And under normal code conditions it does.

{ my $x; { local $x = 1 } }; Can't localize lexical variable $x at (eval 2) line 1, <> line 3.

Putting my "guess the reason" hat on, I could be that they try to keep the regex engine fast and so the error reporting from code blocks in regexes is lighter than elsewhere. Alternatively, it could be just that noone has raised the perlbug to casue it to get fixed yet.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Timing (and a little luck) are everything!
  • Comment on Re: Re: Re: (?{...code..}) regex construct causing panic: top_env in 5.8.2
  • Download Code