I've written cgi script which reads file from the system and print on the web, so far everything is alright; than I'm updating the file by reading textarea(html*) and print in file. using open, print and close command. Problem is that when I write that in to file, it also print ^M character with all endofline character. do you guys know how can I update/write into file without having that ^M character. Thanks monks.