From: Joseph McDonald Date: 2001-09-11T07:27:34+09:00 Subject: [ruby-talk:21048] Re: @aHash{A..Z} = (0..25); DN> How to write the following Perl code in Ruby: DN> @aHash{A..Z} = (0..25); not sure if it's the best way, but: aHash = Hash.new ('A'..'Z').each_with_index {|k, v| aHash[k] = v } will work. regards, -joe