On Wed, 27 Nov 2002, montana wrote: > OOps!! > > Here is the code I'm trying to run: > #!/usr/bin/ruby -w > require "cgi" > cgi = CGI.new("html3") > cgi.out{ > cgi.html{ > cgi.head{"\n" + cgi.title{"This is a Test"} } + > cgi.body{"\n" + > cgi.form{"\n" + > cgi.hr + > cgi.h1{"A Form: "} + "\n" + > cgi.textarea("get_text") + "\n" + > cgi.br + > cgi.submit > } > } > } > } > > I get an error from this. > > Thanks. > SA > > looks like there are some weird binary chars in there or something... try dos2unix. i joined all the lines together and it worked fine, so there is some problem with the linebreaks.... -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ahoward / fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================