Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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
Domain Nodelet?
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 rifling through the Monastery: (6)
As of 2023-09-21 08:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?