Monks,
Is there any easy way to parse multi-line blocks (ie: configuration files)? I assume there are existing modules to do this, but my (admittedly weak) CPAN search skills haven't come up with anything.
Learning Parse::RecDescent seems like it may be overkill in this situation (right?)...
In any case, syntax of the file I'm attempting to parse is:
$type $key {
$type2 $data
$type2 $data
}
e.g.
self 192.168.49.167 {
netmask 255.255.255.0
unit 1
floating enable
vlan public
allow default
}
pool EIS-ORMI-Pool {
lb method observed
monitor all ORIM_https_monitor
members
192.168.11.192:6003
192.168.11.173:6003
10.125.11.213:6003
10.125.11.214:6003
}
Thanks in advance!