[ANN] arrayfields-3.0.0

>> db = DBI.connect "DBI:yada yada ..."
=> #<DBI::DatabaseHandle:0x40e6b0 ... yada...>
>> row = db.select_one("SELECT z_route_num, z_step_num FROM
>> s_route_step")
=> [710, 1]
>> row['z_route_num']
=> 710
>> row[0]
=> 710
>> row['z_step_num']
=> 1
>> row[1]
=> 1

If you wish to use DBI::Row independently, here is a demo ...

>> values = [0,1,2]
=> [0, 1, 2]
>> names = %w(zero one two)
=> ["zero", "one", "two"]
>> r = DBI::Row.new(names, values)
=> [0, 1, 2]
>> r['one']
=> 1

that is cool. Thank you for the tip.
Now how is this different fr the one proposed by Ara??

kind regards -botp

···

Jim Weirich [mailto:jim@weirichhouse.org] wrote:

--
-- Jim Weirich jim@weirichhouse.org http://onestepback.org
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it
correct, not tried it." -- Donald Knuth (in a memo to Peter
van Emde Boas)