I usually use a config file for this
now you could do this 3 ways as i see it
- just have a file that holds a lot of global vars and 'require/use' that
in your mian script
- get one hashref that you globalise and thus reduce namespace pollution
- make it a module, give it a constructor returning a hashref and thus
not polluting *anything*
i usually use #2 for what it's worth
hth,
Jos Boumans
----- Original Message -----
From: "Tim Musson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 27, 2001 6:11 PM
Subject: Best practice for config file use?
>
> I need to pass a number of parms to my program. Is there a "best
> Practice" for how to do this? Command line is not something I want
> to do.
>
> I did search on "Config" from search.cpan.org, but it returned 99
> modules!
>
> Any suggestions? In the past, I have done it by hand, but...
>
> --
> [EMAIL PROTECTED]
> Using The Bat! eMail v1.53d
> Windows NT 5.0.2195 (Service Pack 1)
> Why don't you ever see the headline "Psychic Wins Lottery"?
>
>