http://www.perlmonks.org?node_id=1067823


in reply to Scope of package variables

If you put ScopeTest in a separate file and then use ScopeTest; it will work as you expect.