Kevin, I have found, with experience, with clients who need to have scripts written, that are going to need some sort of global variables assigned to be used by various script, to use a separate configuration file or module. This prevents the client from messing up the main script(s) for your program or project. A simple or complex configuration file/module can be created and editable by the client thru an admin interface, or manually updating the config file. This way the main script(s) are touched.
>>On 16 Jul 2002 11:48:09 -0400, Kevin Old <[EMAIL PROTECTED]> wrote: >>Hello all, >> >>I am writing a script for a client and they have requested an easy way >>to configure their script.....without having to enter the script code >>itself. >> >>I'm not to crazy about using a config file like VARIABLE=VALUE, so I >>thought that since I am using a module anyway, why not have the values >>they might want to ever change in the top of the module. These are >>thigns like paths and number values, that are separate from the command >>line parameters that are passed in when the script is run each time. >> >>First, is this a good idea? >> >>Second, which sytax (in your opinion) should I use? >> >>$CDMA::USER = "myusername"; >> >>or >> >>use constant USER => "myusername"; >>(called like CDMA::USER.....correct?) >> >>Any help is appreciated. >> >>Thanks, >>Kevin Mike(mickalo)Blezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing Providing Internet Solutions that work! http://www.thunder-rain.com Tel: 1(985)902-8484 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]