Re: perl module to read config files?
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
> debian-user-request@lists.debian.org .
> Trouble? e-mail to templin@bucknell.edu .
--
Jens B. Jorgensen
jjorgens@bdsinc.com
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: