From: Toki Toki Date: 2008-07-26T05:51:07+09:00 Subject: Re: Simultaneously URL call, is it possible? Ara Howard wrote: > cfp:~ > cat a.rb > require 'rubygems' > require 'open-uri' > require 'threadify' > > uris = %w( http://google.com http://yahoo.com ) > > results = > %w( http://google.com http://yahoo.com ).threadify do |uri| > open(uri){|fd| fd.read} > end > > puts results.map{|result| result[0, 42]} > > cfp:~ > ruby a.rb >