From: ts Date: 2004-04-21T19:48:37+09:00 Subject: Re: binding - how to get current script? >>>>> "S" == Szymon Drejewicz writes: S> pgResult.fields.each_with_index do |fieldName,i| S> eval(%Q[ #{fieldName} = '#{pgResult.result[0][i]}' ]) S> end use an hash hash = {} pgResult.fields.each_with_index do |fieldName,i| hash[fieldName] = pgResult.result[0][i] end or something like this eval is *evil* Guy Decoux