in reply to Inexplicable uninitialized value when using (?{...}) regexp construct.
gets compiled a bit likesub f { my $x; /(?{$x})/ }
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.
|
|---|