On Mar 11, 2006, at 10:09 AM, Alan Burch wrote:

> This code doesn't work on my Mac.

Something is fishy there, for it works just fine on my own Mac:

Neo:~/Desktop$ ls
tens.rb         wordlist
Neo:~/Desktop$ cat wordlist
one
two
three
0123456789
five
0123456789
Neo:~/Desktop$ cat tens.rb
#!/usr/local/bin/ruby -w

File.foreach("wordlist") do |word|
    puts word if word.chomp.split("").uniq.size == 10
end

__END__
Neo:~/Desktop$ ruby tens.rb
0123456789
0123456789

James Edward Gray II