Try Config::IniFiles
or (untested)
open (FILE, "shhs");
while (<FILE>) {
chomp;
# remove white space , null lin etc
my ($SomeVariable, $Value) = split (#\s*=\s*#, $_,2);
#push into a hash
$SOmeHash{$SomeVariable}=$Value} # now your hash all the values -----Original Message----- From: Praveen [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 12:36 PM To: [EMAIL PROTECTED] Subject: Appconfig Hi, Can anyone give an example how to read the configuration file(environment variable file) using perl, I was reading the AppConfig documentation, and I tried, its not working. for e.g., I have a file called gouenv in that I declared variables mydev = stmt_proc mypass = tryme how to read the above file and store in a variables using AppConfig. Thanks Goutam ===== Goutam Siddavarapu 614-537-8406(Cell) 614-677-9750(W) http://www.Siddavarapu.com __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
