From: ptkwt@...1.aracnet.com (Phil Tomson) Date: 2001-09-11T21:22:36+09:00 Subject: [ruby-talk:21100] Re: @aHash{A..Z} = (0..25); Admittedly, for this particular type of thing, perl does a lot of work for you. This is the Ruby solution I came up with - anybody got anything shorter? aHash = Hash.new valArray=(0..25).to_a ('A' .. 'Z').each { |key| aHash[key] = valArray.to_a.shift } Phil In article , Dat Nguyen wrote: >
>

How to write the following Perl code in Ruby:

>

@aHash{A..Z} = (0..25);

>

Thanks,

>

Dat



Get your FREE download of MSN >Explorer at href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com
> >