Comfort Eagle wrote:
> Paul Lutus wrote:
>> 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?

Better:
I thought it was array of strings & looks like it to me??

  res = dbh.query("Select url FROM sites")
  while url = res.fetch_row do
    puts url.gsub!( /^http:\/\//i, '')
  end

-- 
Posted via http://www.ruby-forum.com/.