From: Ryan Davis Date: 2011-01-12T05:57:42+09:00 Subject: Re: Tidying up a text document On Jan 11, 2011, at 08:30 , simonh wrote: > I have the following data which comes from exporting an Access > database. I'm not sure how the formatting will look (as there is no > preview post option), but basically I need to go from what you see > below to: > > ["Crimping Pliers", "Cerrti-lok Tyco 169400 Crimping Pliers", > "102956", "169406" ... etc] > > or an array of hashes: > > [{':Category => 'Crimping Pliers', :Description => "Cerrti-lok Tyco > 169400 Crimping Pliers", etc... ] hash = Hash[columns.zip(values)] ri Hash::[] and ri Enumerable.zip