in reply to What vars did it define?

Use Exporter. And package namespaces. Really.

If you do that, then the list of variables you want is just everything in the arrays @EXPORT and @EXPORT_OK. (In whatever package your module uses.)

Replies are listed 'Best First'.
(tye)Re1: What vars did it define?
by tye (Sage) on Dec 04, 2000 at 20:44 UTC

    I'd like to throw my support behing this suggestion.

    To add to the advantages, you would no longer have to worry about whether all of your instances of use BigSwitches were done from the same package. Currently, package main; use BigSwitches and package MyModule; use BigSwitches would create two distinct sets of variables that won't stay in sync.

            - tye (but my friends call me "Tye")