|Syntactic Confectionery Delight|
Reading and storing multiple lines from a fileby shewang (Initiate)
|on Feb 19, 2013 at 17:40 UTC||Need Help??|
shewang has asked for the
wisdom of the Perl Monks concerning the following question:
So I have a config file which I need to read into a perl script and store in variables to use later in the process.
The file looks like so:
The code I have done to date reads in the file and stores the values in variable names consistent with what they are in the file.
I then use the following to set my variables for later use:
However, you can probably see the problem here... as there's an entry for NX_NTF_PERSISTENT_ID under the section headed SECTION=cr and an entry under SECTION=cnt.
Any advice greatly received!