Hi, I forgot to mention the Ruby version. It is 1.6.6. Thanks again. "Songsu Yun" <yuns / us.ibm.com> wrote in message news:abr8ue$lte$1 / news.btv.ibm.com... > Hi, > I am trying to run a CGI script from "Programming Ruby" book and getting an > error. > The script runs on AIX version 4. > I built the Ruby on AIX with "IBM C and C++ Compilers. version 3.6.6". > Has anyone dealt with this error ? > Thanks. > Here is the error: > /home/fpse/ruby/lib/cgi.rb:966:in `gsub': Stack overflow in regexp matcher: > /<(?:.|\n)*?>(?!\n)/n (RegexpError) from /home/fpse/ruby/lib/cgi.rb:966:in > `pretty' from rubycgi.rb:6 from rubycgi.rb:4:in `out' from > rubycgi.rb:4 > > Here is the script: > require "cgi" > cgi = CGI.new("html3") # add HTML generation methods > cgi.out { > CGI.pretty ( > cgi.html { > cgi.head { cgi.title{"TITLE"} } + > cgi.body { > cgi.form { > cgi.textarea("get_text") + > cgi.br + > cgi.submit > } + > cgi.h1 { "This is big!" } + > cgi.center { "Jazz Greats of the 20" + > cgi.small {"th"} + " century" + cgi.hr > } + cgi.p + cgi.table ('BORDER' => '5') { > cgi.tr { cgi.td {"Artist"} + cgi.td {"Album"} } + > cgi.tr { cgi.td {"Davis, Miles"} + > cgi.td {"Kind of Blue"} } > } > } > } > ) # CGI.pretty is a method call, not a block > } > > > > > >