Hi,
I need a perl script which reads the configuration file in the following format
config.ini
[DEV]
<Key1>=<Value1>
<Key2>=<Value2>
....
[QA]
<Key1>=<Value1>
<Key2>=<Value2>
.....
[PRD>
<Key1>=<Value1>
<Key2=<Value2>
....
DEV,QA or PRD and config file path and name would be passed as an arguments to this perl script. The script should read that particular section of the Key, Value pairs and store them, so that I can use these in rest of my perl script.
Please provide me with the perl code... preferably without using any of the existing modules. This perl script will be run on SunOs unix operating system.
Thanks for the help and I appreciate the same
Start Free Trial