Improve cfamily and perl snippets