Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How to parse a file with emails and IP's and output a sorted list with a total count

by Paladin (Vicar)
on Jul 28, 2016 at 23:13 UTC ( #1168772=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %users;
    
    ...
      my ($email, $ip) = parse_line($line);
      $users{$email}{$ip}++;
    }
    
  2. or download this
    %users = (
              'joe@example.com' => {
    ...
                                     '192.168.10.28' => 1
                                   }
            );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2019-11-20 23:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (103 votes). Check out past polls.

    Notices?