Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have spent days at this, any help would be appreciated!!!! http://www.geocities.com/skyodyssey/http://www.geocities.com/skyodyssey/ <html> <head> </head> <body> Say I have this data: <br> I have more explanation at bottom of page <br><br> ACM Computing Surveys, InfoTrac, ExpAcd, Dec-96<br> ACM Computing Surveys, PDQ, ABIGlobal, Mar-96<br> ACM Computing Surveys, PDQ,PAbsII, Mar-96<br> ACM Transactions on Computer Systems, InfoTrac, ExpAcd,Nov-96<br> Communications of the ACM, InfoTrac, ExpAcd, Jan-89<br> Communications of the ACM, InfoTrac, GBus, Jan-88<br> Communications of the ACM, PDQ, ABIGlobal, Jan-92<br> Communications of the ACM, PDQ, PAbsII, Jan-92<br> <br> </center><p><br><center><table BORDER CELLSPACING=0 CELLPADDING=0 WIDT +H="100%" > <tr><td ALIGN=CENTER BGCOLOR="#C0C0C0">Journal</center></td><td ALIGN= +CENTER BGCOLOR="#C0C0C0">Resource</td><td ALIGN=CENTER BGCOLOR="#C0C0 +C0">Database</td><td ALIGN=CENTER BGCOLOR="#C0C0C0">Date</td></tr> <tr> <td rowspan=3 VALIGN=TOP>ACM Computing Surveys</td> <td rowspan=1>InfoTrac</td> <td>ExpAcd</td> <td>Dec-96</td> </tr> <tr> <td rowspan=2 >PQD</td> <td>ABIGlobal</td> <td rowspan=2 >Mar-96</td> </tr> <tr> <td>PAbsII</td> </tr> <tr> <td rowspan=1 VALIGN=TOP>ACM Transactions on Computer Systems</td> <td rowspan=1 >InfoTrac</td> <td>ExpAcd</td> <td>Nov-96</td> </tr> <tr> <td rowspan=4 VALIGN=TOP>Communications of the ACM</td> <td rowspan=2 >InfoTrac</td> <td>ExpAcd</td> <td>Jan-89</td> </tr> <tr> <td>GBus</td> <td>Jan-88</td> </tr> <tr> <td rowspan=2 >PQD</td> <td>ABIGlobal</td> <td rowspan=2 >Jan-92</td> </tr> <tr> <td>PAbsII</td> </tr> </table></center> <br> 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 wa +nt to do is is create a table like above, but note what I do when there are duplic +ate fields, I'm first looking at the first field, then I combine multiple fields withi +n that first field. It's easier to look at the table to see what i am trying to do. I har +d coded this table for the above sample data. Remember that I will not have a fixe +d amount of data. I am using a html page to send the keyword to my cgi, I have to use "use CG +I" 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 <br> #!/usr/bin/perl -wT<br> print "Content-type:text/html\n\n";<br> <br> I hope this is enough info, I have been at this for days, and I can't +figure it out<br> Thanks for looking, any and all help will be appreciated!!!!!!!!!!!!!! +!!!!!!!!!!!!! </body> </html>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: printing a table in html using data read from a file
by jeffa (Bishop) on Jun 12, 2001 at 19:47 UTC | |
|
Re: printing a table in html using data read from a file
by bikeNomad (Priest) on Jun 12, 2001 at 19:51 UTC | |
by Anonymous Monk on Jun 12, 2001 at 20:18 UTC | |
by bikeNomad (Priest) on Jun 13, 2001 at 01:15 UTC |