[erlang-questions] Questions on gen_tcp & flexible parsing -2- (readable
Vlad Dumitrescu
vladdu55@REDACTED
Thu Apr 3 19:56:31 CEST 2008
Hi,
I think it would help with some example code. The things you mention
should work, if handled properly (except #2, which I don't know
about).
For example, the included code is not working:
parsecmd(T) ->
parseusr(T, []).
parscmd("{USR:" ++ T, L) -> %% shouldn't be 'parseusr'?
.....;
parsecmd([_|T], L) -> %% shouldn't be 'parseusr'?
......;
parseusr([], L) ->
L.
regards,
Vlad
More information about the erlang-questions
mailing list