From: Peter Bailey Date: 2006-08-24T21:49:04+09:00 Subject: Re: YAML or CSV? James Cribbs wrote: > Peter Bailey wrote: >> value? A hash is only a "2-column" entity, isn't it, one key, one value? >> Do I just make all the cells in a row one value, with a comma or >> something between them as a way to distinguish each cell? In other >> words, use the has to match the incoming filename, then, make the row >> that it's in an array and take it from there? (I'm thinking out loud >> here.) >> > If you don't mind installing an additional library, take a look at > KirbyBase (http://netpromi.com/kirbybase_ruby.html). If you have > imported your file into a spreadsheet, then you can do a csv export from > the spreadsheet to get a csv file. KirbyBase will allow you to import > this csv file and, bingo, you now have a KirbyBase table. You can > easily do searches against the table to find records with filenames > matching your incoming file. Additionally, the record is returned to > you as a Struct object, so you can easily access the other fields. > > HTH, > > Jamey Cribbs > > Confidentiality Notice: This email message, including any attachments, > is for the sole use of the intended recipient(s) and may contain > confidential and/or privileged information. If you are not the intended > recipient(s), you are hereby notified that any dissemination, > unauthorized review, use, disclosure or distribution of this email and > any materials contained in any attachments is prohibited. If you receive > this message in error, or are not the intended recipient(s), please > immediately notify the sender by email and destroy all copies of the > original message, including attachments. Thanks, Jamey. Yes, I've seen the KirbyBase web site before, just in perusing all things Ruby. I remember his dog there on the home page. That was months ago though. But, yes, now I can probably use something just like this. I'm going to have to read up on "Struct" objects, but, I assume it just means that it's in a useable form for my needs. Thanks again. -- Posted via http://www.ruby-forum.com/.