Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: spamstats.pl

by jwkrahn (Abbot)
on Aug 26, 2006 at 08:24 UTC ( [id://569786]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Define our buckets for collecting data
    my %bucket  = ();
    my %USER    = ();
    my %VIRUS   = ();
    my %SPAM    = ();
    
  2. or download this
    
    # These numbers must be valid reason codes...
    my @wanted = ( 1, 60 );
    
  3. or download this
    
    for (<$file>)
    
  4. or download this
    while ( <$file> )
    
  5. or download this
    
        chomp;    
    ...
        my ( $month, $day, $time, $host,
             $process, $clientIP, $MessageID,
             $timeStart, $timeEnd, $service, @INFO ) = split /\s+/;
    
  6. or download this
    my ( undef, undef, undef, $host, undef, undef, undef, undef, undef, $s
    +ervice, @INFO ) = split;
    
  7. or download this
    
            $USER{$host}{$recip}{$action{$service}{$action_}}{$reason{$rea
    +son_}}{'count'}++;
                #if ( grep /^$reason_$/, @wanted );
    
  8. or download this
            $USER{$host}{$recip}{$action{$service}{$action_}}{$reason{$rea
    +son_}}{'count'}++;
                #if exists $wanted{ $reason_ };
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-19 05:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found