Hi,

At Tue, 9 Aug 2005 07:16:09 +0900,
ngoc wrote in [ruby-talk:151287]:
> 
> #!/usr/bin/ruby
> require 'net/http'
> h = Net::HTTP::new('www.rubyist.net')
> (1..9).each do |pages|
>      pg = '/~matz/slides/oscon2005/mgp0000' + pages + '.txt'
       pg = "/~matz/slides/oscon2005/mgp0000#{pages}.txt"

>      resp, data = h.get(pg)
>      print data, "\n"
>      puts 10 * '-'
       puts '-' * 10

> end

Or

  (1..59).each do |pages|
    pg = "/~matz/slides/oscon2005/mgp%05.txt" % pages

-- 
Nobu Nakada