in reply to Inter-package communication

If I understand what you want to do correctly, then all you'd need to know is that variables that live in a given package's symbol table (i.e. not those declared with my) are available to other packages as long as their names are fully qualified. So you could give your configuration hash a distinctive name, and put it in the main package, and access it like so:

$main::_my_configuration_hash{$foo}

I also tentatively suggest you check out the autouse pragma (perldoc autouse) to see if that might be appropriate. It postpones the loading of modules until they're actually used.

Replies are listed 'Best First'.
Re: Re: Inter-package communication
by ton (Friar) on May 09, 2001 at 01:41 UTC
    The $main:: was exactly what I needed. Thanks!

    -Ton
    -----
    Be bloody, bold, and resolute; laugh to scorn
    The power of man...