At 02:13 PM 12/9/2005 +0000, steve silvers wrote:
>I'm using DBI, and searching about 300,000 text fields in my database. What 
>I need to do is grab all instances of a url that leads to documents. Such as
>
>http://docs/docs1/help/com3324.html
>http://docs/docs1/help/com3444.htm
>I need to grab just the name of the documents and print out how many times 
>each one was found. Such as.

I would try something like this.

@docs = $text =~ m/https?:.+\/([^\/]+\.s?html?)/igs;
foreach $doc (@docs) {
        $doccount{$doc}++;
}

%doccount now contains each html file and how many times it appeared.






--
REMEMBER THE WORLD TRADE CENTER         ---=< WTC 911 >=--
"...ne cede malis"

00000100

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to