Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Counting the Times Two Unknown Values Appear Together

by kyle (Abbot)
on Jul 15, 2007 at 03:07 UTC ( #626681=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (<FILE>){ 
         my ($src,$sport) = (split /;/)[9,12];
         $hash{$src}{$sport}++;  
    }
    
  2. or download this
    foreach my $src ( keys %hash ) {
        foreach my $sport ( keys %{$hash{$src}} ) {
    ...
                   $src, $sport, $hash{$src}{$sport};
        }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://626681]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2021-09-19 18:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?