On Wed, 27 Sep 2006, Peter Bailey wrote: > RUBY's complaining about the following 3 lines of code. I've got it in a > new program, but, I copied it directly from an older, working program. > Can someone help me understand what's the problem with the "scan" line, > or, apparently, the "each" line? > > Thanks, > Peter > > > 10 Dir.glob("*.ps").each do |psfile| > 11 file_contents = File.read(psfile) > 12 file_contents.scan(/\%\%Pages: (\d{1,5})[ ]+\n/) do the modification is probably here. can't you show us everything up through the matching end? -a -- in order to be effective truth must penetrate like an arrow - and that is likely to hurt. -- wei wu wei