From: Paul Lutus Date: 2006-11-30T11:05:08+09:00 Subject: Re: creating directory "http://example.com" Comfort Eagle wrote: / ... > Interesting. Newb Q, I'm sure, but when I put that in a while loop I > get: "private method `gsub!' called for ..." /me googles & still > scratches head. > > " > res.each do |url| > puts url.gsub!( /^http:\/\//i, '') > end What is "res"? Is it an array of strings? Also, it is sometimes easier to use the %r{...} syntax instead of /.../, this allows you to use "/" as an ordinary character. -- Paul Lutus http://www.arachnoid.com