I have a configuration file called setup.ini, which contains something like this:Val1=abc
Val2=def
Val3=ghiIn perl, how would I read in the ini file and assign the values?
You say "something like this"... If you can use standard Perl syntax in your ini file, ie-
#
Val1 = 'abc';
Val2 = 'def';
Val3 = 'ghi';
#
Then you could just use require in your main program...
#
require 'setup.ini';
#
(P.S. - don't forget to CHMOD the ini file to 755 or it won't work).