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
ma [mailto:[EMAIL PROTECTED]
Sent: 22 June 2007 11:28
To: beginners@perl.org
Subject: Database connection using cfg file
Hi All,
I wanted to make a database connection using the values provided in .cfg
file
my.cfg
***
dbname=xyz
user=abc
passwd=abc123
***
my perl package whi
Hi All,
I wanted to make a database connection using the values provided
in .cfg file
my.cfg
***
dbname=xyz
user=abc
passwd=abc123
***
my perl package which need to read the my.cfg file & make the
connection
mypackage
sub new(){
my @arr=();
readcfg();