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_ };