in reply to Declaring Variables

That is what the vars module is for.

That said, only rarely is it a good design to have subroutines whose job is to communicate by setting global variables...