in reply to Inexplicable uninitialized value when using (?{...}) regexp construct.

Currently, code like
sub f { my $x; /(?{$x})/ }
gets compiled a bit like
sub f { my $x; sub hidden {$x} }

and due to the way closures work, the value of $x as seen by the inner sub 'hidden' is the value of $x at the first call to f().

I'm hoping to have this fixed by 5.10.0, assuming I can find enough tuits.

Dave.