in reply to Updating a conf file non-destructively

The problem with my code is that it duplicates the file in my new file and I'm not sure why.

You read the file twice. Once in sub BUILD in Init::Freebsd::RCConf and once in the test script ($self->load() and $conf->load()).

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}