in reply to
Re: conf file in Perl syntax
in thread conf file in Perl syntax
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:
# hostname = IP
host_1 = 192.168.1.1
host_2 = 192.168.1.2
host_3 = 192.168.1.3
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?