On Fri, 9 Dec 2005, Jennifer Garner wrote:

> I think you have  understanded wrongly with my meaning.
> The result of  $low{ $1 }++ is no use for me.I just want the frequency of IP
> exists.
> For example, if there are some IPs exists in '22.33.44.0' :
> 
> 22.33.44.11
> 22.33.44.22
> 22.33.44.22
> 22.33.44.33
> 22.33.44.33
> 22.33.44.44
> 22.33.44.55
> 
> Now I only want  the uniq times of all IP appeared,this is 5.

So, some kind of structure like

  foreach @ip {
    $seen_ip{ $_ }++;
  }

And then work on the keys in the %seen_ip hash.



-- 
Chris Devers

ÒñÙ§’„ÛkN»
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>

Reply via email to