in reply to Re^2: what is the scope of my $x=$x
in thread what is the scope of my $x=$x

That's true - I was going from the assumption that the assignment in OP was the only relevant code :-)