in reply to Re^2: Array reference problem
in thread Array reference problem

Because only for package variables does the lookup happen at runtime.