Guru's,

I'm attempting to read and format data from a DBF database. The database is created and updated in real time by a proprietary software, so using SQL is
not an option. Also, the file is a weird category-less database which does
not seem to be supported by dbd-xbase.

I'm having trouble figuring out how to loop through an infinite number of
nested categories to print output like this:

Fruit (fruit)
Citrus (citrus)
Lemons (lemons)
Oranges (oranges)
Tropical (tropical)
Mango
Pineapple
Vegetables (vegetables)
Beans (beans)
Broccoli (broccoli)
Cabbage (cabbage)


I included a text version of the database in case anyone cant open the DBF
file for viewing. Can someone give me an example of how to accomplish this?


- Chris


Take a look at the Perl Data Structure POD "perldoc perldsc" or in the installed Perl help files. Parsing your Db copy, generating and printing a Hash of Hashes (HoH) looks like it may do the trick.

Hth,
--Trevor.
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to