Perl: added makegroups and newyield commands to write perl output directly into the source