http://www.geocities.com/skyodyssey/ Say I have this data:
I have more explanation at bottom of page

ACM Computing Surveys, InfoTrac, ExpAcd, Dec-96
ACM Computing Surveys, PDQ, ABIGlobal, Mar-96
ACM Computing Surveys, PDQ,PAbsII, Mar-96
ACM Transactions on Computer Systems, InfoTrac, ExpAcd,Nov-96
Communications of the ACM, InfoTrac, ExpAcd, Jan-89
Communications of the ACM, InfoTrac, GBus, Jan-88
Communications of the ACM, PDQ, ABIGlobal, Jan-92
Communications of the ACM, PDQ, PAbsII, Jan-92


JournalResourceDatabaseDate
ACM Computing Surveys InfoTrac ExpAcd Dec-96
PQD ABIGlobal Mar-96
PAbsII
ACM Transactions on Computer Systems InfoTrac ExpAcd Nov-96
Communications of the ACM InfoTrac ExpAcd Jan-89
GBus Jan-88
PQD ABIGlobal Jan-92
PAbsII

This is only a small portion of a large .csv file I will create. What I be doing is searching the database I read in for a pattern given by the user then i will put into an array all the lines that matched, then I will sort them and make a new array with all of the values split at the comma. what i want to do is is create a table like above, but note what I do when there are duplicate fields, I'm first looking at the first field, then I combine multiple fields within that first field. It's easier to look at the table to see what i am trying to do. I hard coded this table for the above sample data. Remember that I will not have a fixed amount of data. I am using a html page to send the keyword to my cgi, I have to use "use CGI" to be able to get the parameters, problem is, I can't ever get "use HTML::Table" to work, just includeing it make it crash, when i type perl -v i get version 5.005_03 built for sun4-solaris, also i have to include this in my program
#!/usr/bin/perl -wT
print "Content-type:text/html\n\n";

I hope this is enough info, I have been at this for days, and I can't figure it out
Thanks for looking, any and all help will be appreciated!!!!!!!!!!!!!!!!!!!!!!!!!!!