Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 scrutinizing the Monastery: (3)
As of 2022-08-10 02:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?