As I posted earlier,"^@" gets appended to my perl variable.Only way I know is to use "chop" to remote it.I still haven't got how it is coming,is there any way to know if variable is appended by "^@",then only I will chop it.because in some cases,it doesn't append,that time I should not "chop" it.