|Pathologically Eclectic Rubbish Lister|
Confused Beginner: searching and displaying information from a dat fileby Anonymous Monk
|on Nov 05, 2001 at 20:20 UTC||Need Help??|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
I was wondering if you could help me with a problem my boss has given me to solve and as I am a beginner in perl I am having a few problems. I have to create a perl script that searches through a single dat with one field on each line and what I need it to do is pick out the first 11 lines (as these form one record) of the dat file, then I have to create a search engine where he can type in a keyword, it will read in the dat file and then take all the records with the associated keyword and display them in HTML. I tried downloading and following a search.pl module but the results were not what I needed. The problem seems to be that when I do the search it just picks out and displays the keyword and not the set of records, I can?t seem to get the perl script to take the first 11 lines and put them into a record and then display them in a format that is clear.
Any help would be much appreciated.
Edit kudra, 2001-11-05 Changed title; added markup