Thanks. This is almost there.
It prints ONLY the earliest record (by date). (Which, in this case was the last record in the file.) None of the other records are printed. It also returns the following error:
"Use of uninitialized value in hash element at orderfh.pl line 42, <FILE> chunk 1."...
They're just simple html records.
Here's a sample:
"
<H1>
<CENTER>CA-01-8-11-R-1</CENTER></H1>some text here
<TABLE border=1>
<TBODY>
<TR>
<TH>some text here</TH>
<TH>p#</TH>
<TH>some text here</TH>
<TH>some text here</TH>
<TH>some text here</TH>
<TH>some text...
Have HTML files that I want to (check for dupes) and put in date order. Each record begins with <H1> and ends with <HR>, so I would open the file and split @ <HR>. There's a date section in these records - mm-dd-yy - that would determine how the records are ordered.
$a =~...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.