be thisif ($count =~ /\n$/) {chomp($c);}
(or really just chomp; no need for the condition there I think)if ($c =~ /\n$/) {chomp($c);}
The way you have it now, $c will still have the newline at the end.
In reply to Re: sprintf number to string
by Crackers2
in thread sprintf number to string
by jobsworth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |