in reply to sprintf number to string
Should this
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 Section
Seekers of Perl Wisdom