Thanks LanX for your reply.
I am new guy in perl, but I installed the IniFiles module.
what you are writing is hard-to-read syntax for me.
What I need is a little code snippet that does the following:
I have the inifile:
in reply to Re: conf file in Perl syntax
in thread conf file in Perl syntax
The only thing I need is a little piece of code that will get all the hostnames into an array @hostnames and all the IPs into an array @ips.
Is this possible?
# hostname = IP
host_1 = 192.168.1.1
host_2 = 192.168.1.2
host_3 = 192.168.1.3