On Wed, Apr 13, 2011 at 9:06 AM, David Sprague <david.sprague / gmail.com> wr=
ote:
> dict =3D Hash.new([])
>
> dict_file.each do |line|
> =A0line.chomp!()
> =A0dict[line.length] << line
> end

there are many ways.
one way eg,

dict=3D{}
dict_file.each do |line|
  line.chomp!
  (dict[line.length] ||=3D []) << line
end

best regards -botp