Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: sprintf number to string

by Crackers2 (Parson)
on Aug 14, 2015 at 16:59 UTC ( #1138613=note: print w/replies, xml ) Need Help??


in reply to sprintf number to string

Should this
if ($count =~ /\n$/) {chomp($c);}
be this
if ($c =~ /\n$/) {chomp($c);}
(or really just chomp; no need for the condition there I think)

The way you have it now, $c will still have the newline at the end.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1138613]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2020-10-20 09:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (209 votes). Check out past polls.

    Notices?