But the values HAVE to be read in.. Each run is different and could have
different values..
I could set a default set of values, but still need to read in a .cfg to
get the actual
Values. Tis why I went down this ugly road....

Any insight as to how to make it work as I would like? Being able to
read in the values
Via a .cfg ???

-Ron


-----Original Message-----
From: Randal L. Schwartz [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 12, 2001 4:34 PM
To: [EMAIL PROTECTED]; Ronald Yacketta
Subject: Re: Reading config file issues


>>>>> "Ronald" == Ronald Yacketta <[EMAIL PROTECTED]> 
>>>>> writes:

Ronald> my 
Ronald> ($g_all_cl,$g_p5_cl,$g_p299_cl,$g_imp143_cl,$g_imp5_cl,$g_imp_14
Ronald> _cl,$g_val_c
Ronald> l,
Ronald>
$g_all_cl_think,$g_p5_cl_think,$g_p299_cl_think,$g_imp143_cl_think,$g_im
p5_c
Ronald> l_think,
Ronald>
$g_imp_14_cl_think,$g_val_cl_think,$g_all_cl_stagger,$g_p5_cl_stagger,
Ronald>
$g_p299_cl_stagger,$g_imp143_cl_stagger,$g_imp5_cl_stagger,$g_imp_14_cl_
stag
Ronald> ger,
Ronald>
$g_val_cl_stagger,$g_all_fast,$g_imp1_5_fast,$g_imp1_14_fast,$g_imp1_143
_fas
Ronald> t,
Ronald>
$g_pact_5_fast,$g_pact_299_fast,$g_valid_fast,$g_all_sleepy,$g_imp1_5_sl
eepy
Ronald> ,
Ronald>
$g_imp1_14_sleepy,$g_imp1_143_sleepy,$g_pact_5_sleepy,$g_pact_299_sleepy
,$g_
Ronald> valid_sleepy,
Ronald> $acf2_file );

Ewww!  My eyes hurt even looking at this.  You cannot expect any
maintenance programmer to not mess up on this horribly.  And of course,
the worst was yet to come:

Ronald>                         $$variable = $value;

Yes.  Wrong.  So Wrong.  If the answer is "create a variable name based
on the contents of another variable", you've asked the
wrong question.   Please back up.  Start over.

Create a hash with these values.  Don't create 150 separate variables!

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777
0095 <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See
PerlTraining.Stonehenge.com for onsite and open-enrollment Perl
training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to