On 9/20/07, demerphq <[EMAIL PROTECTED]> wrote: > The solution is to add a dummy line to f() to make sure that it mentions $x. > > { > my $x = 'A'; > sub f { my $y=$x; sub { print \$x; $x++ } } > sub g { sub { print \$x; $x++ } if $x } > }
My experience was just a void context mention was enough. No operation was required: sub f { $x; sub { ... } } Josh