Problem is this line:
my $formfields =qq( mobilenum=$pcs callbacknum=$back message= $msg ack_add= "$e");
It has to URL encoded, that is what you are telling the line above.
Try setting $request->content("mobilenum=xxxxxxx&callbacknum=xxxxxxx&message=Hejsa&ack_add=me");