Hi. I have found a bug in cperl mode. If I write code s/\s+//g ; it confuses cperl no end and tit hinks that a lot of code after this statement is now comment. If I change it to s!\s+!!g it works. Regards, Peter