in reply to How to remove all new line ?

This is not very efficient way of doing it but it will work,

@data = split("\n",$data); $data = join("",@data);