in reply to Scope of package variables

As an alternative to tangent's solution, you could put the declaration and contents of "package ScoptTest" inside a BEGIN{} block.

             When in doubt, mumble; when in trouble, delegate; when in charge, ponder. -- James H. Boren