Clean up cdoc Perl-isms