in reply to dereferencing use module

Although the other answers have already given you the help you need to solve your problem as-stated, I wonder if there isn't a better approach.

If you're just loading a module on a per-host basis, to get configuration data, why not load a config file instead?

Rather than loading the module just load and parse:

That way you could distribute all your config to all hosts - via Puppet, Chef, or for the perl-lovers Slaughter, and the right thing will happen..

Steve
--