note
perlfan
stackoverflow for those who live and die by stack overflow x-D
<code>
@out = <$proxy>;
for(@out) {
chomp;
($parm,$n) = split/=/;
if ($parm eq "totalmailattemptcnt") {
$outh{"mails"}= $n;
} elsif ($parm eq "goodmailcnt") {
$outh{"goodmail"} = $n;
} elsif ($parm eq "numattcnt") {
$outh{"numatt"} =$n;
} elsif ($parm eq "regexcnt") {
$outh{"regmatch"} =$n;
} elsif ($parm eq "viruscnt") {
$outh{"viruses"} = $n;
} elsif ($parm eq "spamcnt") {
$outh{"spamcnt"} = $n;
} elsif ($parm eq "relaydeniedcnt") {
$outh{"relaydenied"} = $n;
} elsif ($parm eq "bannedrecipcnt") {
$outh{"badrecip"} =$n;
} elsif ($parm eq "bannedsendercnt") {
$outh{"badsender"} = $n;
...
</code>
No wonder Perl has the rep it does.
11145337
11145337