Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Best practice with polymorphic constructors

by traveler (Parson)
on Sep 03, 2001 at 02:15 UTC ( #109786=note: print w/replies, xml ) Need Help??


in reply to Best practice with polymorphic constructors

Please correct me if I am wrong or missing something. It seems to me that the module name in the config file is primarily a "key" to identify the particular user/password pair you are using. So why not structure the config file thus:
<mydb> <config user="fooser" pass="foo" /> <modify user="barser" pass="bar" /> </mydb>
(Or, you could specify a database or any other information in there.) Then you could retrieve the credentials based on the functionality, not the module name. Does that make sense?

HTH, --traveler

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://109786]
help
Chatterbox?
[shmem]: fuel is only one fuel that fuels the fools... it is all about power and control - which NOBODY will have.
[shmem]: ...can't have, since silly
[Discipulus]: yes. the central thing is the power. itself
[Discipulus]: s/some/new/

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2017-04-29 22:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (534 votes). Check out past polls.