On 6/22/07, Alma <[EMAIL PROTECTED]> wrote:
Hi All,
I wanted to make a database connection using the values provided
in .cfg file
snip
Don't roll your own config parser. There are many in CPAN. I would
suggest using YAML* or YAML::Syck*. The latter is a faster
implementation, but it require
One thing could be
[EMAIL PROTECTED];
$usr = @arr[1];
$pwd ||= @arr[2];
They should be $arr[n..]
If you turn on strict you can get rid of these as it wont compile until you
do.
If you take your readcfg.
readcfg($cfgpath,\%cfgvalues);
sub readcfg {
my($cfgpath,$