From: dhtapp Date: 2003-12-04T10:07:07+09:00 Subject: _VERY_ basic Here Doc Question Hi, I'm dinking with some examples in D&A's book (specifically, a socket-level time server), and I just tried replacing a slew of output statements with what I thought would be a well-formed here document. Here's the offending code: while ( session = server.accept ) x = "Request: #{session.gets}" print x session.print( "HTTP/1.1 200/OK\r\n" ) session.print("Content-type: text/html\r\n\r\n" ) { Bunch of no-doubt fascinating stuff snipped ...} if x.index( "jpclient=yes" ) session.print( <<-"JAVA_CLIENT_RAW_XML" JAVA_CLIENT_RAW_XML ) next end { &etc. } ....but the here doc doesn't parse. Can someone please take two nanoseconds to point out the obvious? Thanks! - dan