Hello,

I wrote these codes in my CGI scripts:

my $percent = sprintf("%.2f\%",$count/$total * 100);

Then I print the $percent to web and get the results correctly like:

12.41%

But when I looked at error_log,I got many error warnings:

Invalid conversion in sprintf: end of string at
/home/apache/stat/ipcount.cgi line 71.

What's this and how to earse it?Thanks.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to