[erlang-questions] Re: How to remove \ from string

Wes James comptekki@REDACTED
Wed Apr 6 22:20:41 CEST 2011


Probably because D is a list and {get,_....} is a tuple.  Try
D=list_to_tuple(binary_to_list(Data)).

I didn't see binary_to_tuple....

-wes

On Wed, Apr 6, 2011 at 2:07 PM, Muhammad Yousaf
<muhammad.yousaf@REDACTED> wrote:
>
> Thank you i got your point but what i am trying to do is ,  remote computer
> is sending me a data via socket like {get,"user","wilson","lname"}
> but for some reason i cannot match it in case statement my output is
> im in none
> recieve Data from
> socket:[255,251,31,255,251,32,255,251,24,255,251,39,255,253,
>                           1,255,251,3,255,253,3]

<snip>



More information about the erlang-questions mailing list