Link to home
Start Free TrialLog in
Avatar of Ivanov_G
Ivanov_GFlag for Bulgaria

asked on

how to make config and locale files

My idea is to make the config and language files in the following format:

option = "some value"
second = "something else"

I need to make a package, which perform this:

my %config = ();
$config = ( option => "some value",
                 second => "something else"
);

How to parse the file in order to load its contents in hash?
ASKER CERTIFIED SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ivanov_G

ASKER

Yep, that will do the work. Thanks.