I'm running into a weird behavior while using TkComm::list and
TkComm::tk_tcl2ruby

ruby-1.9.1-p378 > data = "2.00 21 2"
 => "2.00 21 2"
ruby-1.9.1-p378 > TkComm::list(data)
 => [2.0, 21, 2]
ruby-1.9.1-p378 > TkComm::tk_tcl2ruby(data)
 => [2.0, 21, 2]

With those methods, I'm losing a zero...

But if I break down and just use split:

ruby-1.9.1-p378 > data.split
 => ["2.00", "21", "2"]

Is this a bug?  or poor use of the TkComm::list and tk_tcl2ruby methods?
-- 
Posted via http://www.ruby-forum.com/.