in reply to Examples fo Where "our" is really needed
Of course, if you override a my at the same level, you've effectively pushed it out of scope. You can't reach that variable anymore. I don't know whether Perl itself considers it an end of scope, though.
If, instead of replacing it with our, use vars had been upgraded to a real, scoping pragma, then there could have been a no vars to declare the end of global scope, and you'd get your lexical back.
|
|---|