in reply to How about a module for "passwords"?
package Attr; use strict; use vars qw(%struct); %struct = ( infomgr => { sid => 'xxxxxx', username => 'xxxxxx', passwd => 'xxxxxx', }, )
This way we can have multiple hosts, databases (in fact any arbitrary data.)
To reference the data in our scripts:
We also have the OS accounts locked down tightly as well as permissions on the file. This works quite well for us as we've got a single point for all our configuration data.use Attr (); # Application wide configuration use vars qw(%struct); # Grab the datastructure from the config fil +e *struct = \%Attr::struct; # Alias the variable out .. .. print $self->{config}{infomgr}{sid} # for want of a better example
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How about a module for "passwords"?
by John M. Dlugosz (Monsignor) on Jan 27, 2003 at 06:19 UTC | |
by Ryszard (Priest) on Jan 27, 2003 at 07:05 UTC |