M
Mr_Noob
Hi all,
here is a sample of my file :
## blah blah
[client1]
remote=192.168.1.2
### some comments here
### blah blah
[client2]
remote=192.168.1.5
passive=true
###blablah
[client3]
remote=192.168.1.8
[client4]
remote=192.168.1.15
passive=true
###
####
####
I am trying to write a perl script that would exclude all comments
from the above file and then generate an associative array, and output
the following result :
client1;192.168.1.1
client2;192.168.1.5;true
client3;192.168.1.8
client4;192.168.1.15;true
....
thanks in advance for ur help...
br
here is a sample of my file :
## blah blah
[client1]
remote=192.168.1.2
### some comments here
### blah blah
[client2]
remote=192.168.1.5
passive=true
###blablah
[client3]
remote=192.168.1.8
[client4]
remote=192.168.1.15
passive=true
###
####
####
I am trying to write a perl script that would exclude all comments
from the above file and then generate an associative array, and output
the following result :
client1;192.168.1.1
client2;192.168.1.5;true
client3;192.168.1.8
client4;192.168.1.15;true
....
thanks in advance for ur help...
br