in reply to Re^2: How to declare and use global variables
in thread How to declare and use global variables

Well, you never declare $make_AR_1 in the top level script, and you're not saying you're exporting $make_AR_1, so it's not surprising you get a message when using $make_AR_1 in the top level script.
  • Comment on Re^3: How to declare and use global variables

Replies are listed 'Best First'.
Re^4: How to declare and use global variables
by alih110 (Novice) on Nov 03, 2008 at 13:42 UTC
    how do I export the variable to the top level script? is this correct in the perl module? => ------------------------ use Exporter (); @Inst::EXPORT = qw($make_AR_1) -----------------------
      What's with all the ------? Put you code in <code>/</code> pairs and it will be lot easier for others to read. And if people can more easily read your question, the more and better responses you get.

      As for you question, what happened when you tried?