why syntax error

Wes James comptekki@REDACTED
Wed Apr 14 19:44:10 CEST 2010


I am trying to debug some yaws data.  yaws uses out(A)-> ..... to send
data back to the browser.  I did an io:format of "A" to use it in just
an .erl file.  The "A" data looks like this:

	{arg,#Port<0.2808>,{{127,0,0,1},51598},......,<0.1112.0>,[],undefined,[47],undefined}

So I have

start() ->
	Data={arg,#Port<0.2808>,{{127,0,0,1},51598},......,<0.1112.0>,[],undefined,[47],undefined},
	out(Data).


but when I do c(module) I get: Syntax error before Port.  If I change
#Port<0.2808> to undefined then do c(module) again then I get syntax
error before: '<'.  So I change <0.1112.0> to undefined and now it
compiles fine.  Why doesn't #Port<0.2808> and <0.1112.0> pass the
compile stage?

thx,

-wes


More information about the erlang-questions mailing list