
budman
User
Feb 12, 2011, 11:02 PM
Post #2 of 4
(786 views)
|
|
Re: [Zamereon] Finding all strings containing similar name
[In reply to]
|
Can't Post
|
|
Percentage: my $pct = ( $items_found / $total_items ) For searching a database, look at a DBI module for your database type. If you need the percentage, you'll need process the data using the fetchrow or similar function. Then have two counters, one to count total items and another to count .com sites. if ( $col_data =~ /\.com/i ) { $items_found++ } $total_items++
|