Help for this page

Select Code to Download


  1. or download this
    
    my %count=();  # A hash -it is bcos of of key/value pairs?
    ...
    }
    
  2. or download this
    
    my @data = map{ $count{$_} || 0 } qw(CLEAN SPAM INFECTED BANNED BAD-HE
    +ADER REJECTED);
    ...
    
    qw(CLEAN SPAM INFECTED BANNED BAD-HEADER REJECTED) # here you create a
    +n array for count values?
    
  3. or download this
    
    my $data = GD::Graph::Data->new([
    ...
    
    [@data] has count values coming from  line qw(CLEAN SPAM INFECTED BANN
    +ED BAD-HEADER REJECTED)