From: Gregory Brown Date: 2005-11-17T14:28:24+09:00 Subject: Re: Improving code... On 11/17/05, Joe Van Dyk wrote: > That is *exactly* what I had before I decided to use scanf. scanf has > the advantage of automatically converting everything to the correct > type. But I'm not sure what's best in this case. You could easily call to_f before you assign it to the hash. > Later on, I might need to get more of the process information, so I > thought getting all the values, and then just putting the ones I need > into the hash would be better. you still are getting all the values. You could make an array of keys or a temporary hash if you want to make it more clear, though...