Sounds like a perfect job for bison and flex. Having looked at the syntax of the new files I'm guessing they follow a nice, strict (easy to program for) syntax. If you get the source it's probably got a parser embedded in it. It shouldn't be difficult to translate c to perl.
Craig Sanders wrote: > does anyone know of a perl module to parse config files as used by gated > or the new bind 8.1? > > e.g. /etc/named.conf: > > options { > directory "/var/named"; > forward only; > forwarders { > 203.16.167.1; > 203.16.167.5; > }; > }; > > zone "." { > type hint; > file "named.root"; > }; > > zone "localhost" { > type master; > file "named.local"; > }; > > zone "127.in-addr.arpa" { > type master; > file "named.rev-local"; > }; > > craig > > -- > craig sanders > > -- > TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to > [EMAIL PROTECTED] . > Trouble? e-mail to [EMAIL PROTECTED] . -- Jens B. Jorgensen [EMAIL PROTECTED] -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .