in reply to How the perl converts LF into CRLF

Did you read the POD for the Net::cmd module? If you had you would find this:
datasend ( DATA ) Send data to the remote server, converting LF to CRLF. Any line st +arting with a '.' will be prefixed with another '.'. DATA may be an a +rray or a reference to an array.
jdtoronto