# cat /var/log/qmail/smtp/current | ./spamdyke-stats.pl

Allowed: 0
Denied : 0
Errors : 0
Total  : 0
% Valid: 0.00%
% Spam : 0.00%
% Error: 0.00%
#

?? (The log file is far from empty)

Felix Buenemann wrote:
> Try the attached version.
> 
> Am 09.10.2008 18:38 Uhr, Eric Shubert schrieb:
>> Appears to need a bit of work yet:
>> # cat /var/log/qmail/smtp/current | ./spamdyke-stats.pl
>> Use of uninitialized value in addition (+) at ./spamdyke-stats.pl line 79, <>
>>         line 8340 (#1)
>>     (W uninitialized) An undefined value was used as if it were already
>>     defined.  It was interpreted as a "" or a 0, but maybe it was a mistake.
>>     To suppress this warning assign a defined value to your variables.
>>
>>     To help you figure out what was undefined, perl tells you what operation
>>     you used the undefined value in.  Note, however, that perl optimizes your
>>     program and the operation displayed in the warning may not necessarily
>>     appear literally in your program.  For example, "that $foo" is
>>     usually optimized into "that " . $foo, and the warning will refer to
>>     the concatenation (.) operator, even though there is no . in your
>>     program.
>>
>> Use of uninitialized value in division (/) at ./spamdyke-stats.pl line 79, <>
>>         line 8340 (#1)
>>
>> Illegal division by zero at ./spamdyke-stats.pl line 79, <> line 8340 (#2)
>>     (F) You tried to divide a number by 0.  Either something was wrong in
>>     your logic, or you need to put a conditional in to guard against
>>     meaningless input.
>>
>> Uncaught exception from user code:
>>         Illegal division by zero at ./spamdyke-stats.pl line 79, <> line 
>> 8340.
>>  at ./spamdyke-stats.pl line 79
>> #
>>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> spamdyke-users mailing list
> [email protected]
> http://www.spamdyke.org/mailman/listinfo/spamdyke-users


-- 
-Eric 'shubes'

_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users

Reply via email to