Subject: | Documentation bug: bad Perl code in synopsis |
SYNOPSIS section contains line
print (1000*$b->total_requests/$b->total_time)." req/sec\n";
It should be written as
print((1000*$b->total_requests/$b->total_time)." req/sec\n");
Otherwise it is being parsed as
(print (1000*$b->total_requests/$b->total_time))." req/sec\n";
what is obviously wrong (and perl will warn you about it if you run with
'use warnings'):
print (...) interpreted as function at - line XX
Useless use of concatenation (.) or string in void context at - line XX