The file dhcpd-lib.pl that comes with Webmin (Webmin is BSD License) is a perl library for parsing the dhcpd.conf file. Also I found this on google. That should get you started.
Those were good links, thanks.
The code in the google link isn't really generic enough for what I need, but I've been looking at the Webmin code and hopefully I can pull out some of the concepts if I stare at it long enough.