From: Peter Bailey Date: 2010-12-23T22:35:33+09:00 Subject: simple counting in Ruby Hello, Can someone please tell me how to get a count for the number of files in a directory? Example: files = Dir.glob("*.pdf") puts files.count ?? That doesn't work, but, I'd love to know what would work. Thanks, Peter -- Posted via http://www.ruby-forum.com/.