in reply to Re: Catch references to undefined variables in other modules? (export)
in thread Catch references to undefined variables in other modules?

Do you have any suggestions other than Export if I've got about 800 constants defined in my 'Constants.pm' module and 400 modules which use them? Each module is only importing the constants it needs, but I still would like to avoid creating all those extra symbol table entries and still catch misspelled names at compile time.
  • Comment on Re^2: Catch references to undefined variables in other modules? (export)

Replies are listed 'Best First'.
Re^3: Catch references to undefined variables in other modules? (export)
by tye (Sage) on Oct 31, 2007 at 17:00 UTC
    Each module is only importing the constants it needs, but I still would like to avoid creating all those extra symbol table entries

    If each module is only importing a few, then you are only creating a few extra symbol table entries. So I don't see what you are optimizing here. It isn't like symbol table entries take a huge amount of space. A few more per module isn't going to be much compared to the size of the module.

    - tye