in reply to Setting Global Variable in Sub
You might have a look at ovid's 'our' is not 'my' tutorial and Amel's Lexical vs. Package Variables(With a little local thrown in) tutorial