in reply to Re^2: global variables defined in an external file
in thread global variables defined in an external file

my creates a block-scoped variable, while you need to create (using vars or our, as already suggested) a package-scoped variable (available in the symbol table), so it actually can be exported.

Read Coping with Scoping for more information on this topic.

  • Comment on Re^3: global variables defined in an external file