Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: dereferencing use module

by skx (Parson)
on May 24, 2014 at 00:01 UTC ( #1087280=note: print w/replies, xml ) Need Help??


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:

  • /etc/foo/default.conf
  • /etc/foo/$hostname.conf

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
--

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1087280]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2021-02-26 15:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?