modify c and perl template