Thanks nickb. If you are on a windows machine you need to use "wb" instead of "w" for this to work. Here is a version that works on windows:
require 'open-uri';(1..34).to_a.each{|x| open("CH#{x}.PDF", "wb").write(open('http://www.dspguide.com/CH1.PDF').read)}