
S_Shrum
User
Jan 17, 2001, 10:44 AM
Post #2 of 2
(372 views)
|
|
Re: converts data to html table
[In reply to]
|
Can't Post
|
|
I am new to Perl as well but have programmed in VB, ADA, C++, and now Perl (for about a month). This works with flatfile data sources...nothing fancy. I am in the process of writting a open-source generic flatfile -> html table (since I didn't want to pay for data source connectivity from my host service) that allows for data and table formatting, searching for a value in a specific field or ALL fields, sorting, etc. You can use it either with a template (it uses the GREP command to do search and replace) or as a SSI call from within a existing page (by omitting the &template parameter). I set it up to automatically place wrappers around fields that are titled "URL" and "Email" so that they are active links within the table. If you require something else, you can change the code (as I have) to deal with other fields as well (like cgi calls to other databases based on the information in the field). This at least requires that the first record in the datafile lists the field names, which is standard for flatfile databases I believe. It still needs a little work plus I need to standardize some things but feel free to look it over. It works great on NT but I am fixing some UNIX issues. If you see something that can be improved on, let me know. http://www.shrum.net/db_table.pl <-- as of Jan 9th I should have it done within a week or 2 (school starts up next week) but if your in a rush, you can get the general idea from what I am doing. Hope this helps. PerlGuru has been good to me so I share the wealth (of knowledge). Sean Shrum sean@shrum.net
|