From: James Britt Date: 2006-01-01T03:21:40+09:00 Subject: Re: CGI class question In cgi.p{ Dir["*.*"].each{ |f| "huhu " } } cgi.p is emitting the return value of Dir["*.*"].each{ |f| "huhu " } which is the set of file names, not the string "huhu " Try this as a simple script to see this: puts Dir["*.*"].each{ |f| "huhu " } You may want Dir["*.*"].each{ |f| cgi.p{ "huhu " } } Or something like that. James -- http://www.ruby-doc.org - Ruby Help & Documentation http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.jamesbritt.com - Playing with Better Toys http://www.30secondrule.com - Building Better Tools