On 2/8/07, Jm lists <[EMAIL PROTECTED]> wrote:
my $percent = sprintf("%.2f\%",$count/$total * 100);
Whups. To put a real percent sign into a (s)printf format, use two percent signs in a row. This is one of the few cases that backslash is not the escape character to use, and it's because it's being "sent" to sprintf, not to the double-quoted string; and sprintf's escape character is the percent sign. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/