Fix for JRUBY-2882. Handle error messages related to constructors better
[jruby.git] / bench / shootout / spellcheck.ruby
blobb2c5bd68f96a8ebde468d5e9f60128cd632a6720
1 #!/usr/bin/ruby
2 # -*- mode: ruby -*-
3 # $Id: spellcheck.ruby,v 1.3 2005-06-21 05:36:55 igouy-guest Exp $
4 # http://shootout.alioth.debian.org/
5 # Revised by Dave Anderson
7 dict = Hash.new
8 l = ""
10 IO.foreach("Usr.Dict.Words") do |l|
11 dict[l.chomp!] = 1
12 end
14 STDIN.each do |l|
15 unless dict.has_key? l.chomp!
16 puts l
17 end
18 end