Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Can I pad a number with leading spaces rather than leading 0's

by TheoPetersen (Priest)
on Aug 20, 2001 at 23:10 UTC ( #106318=note: print w/ replies, xml ) Need Help??


in reply to Can I pad a number with leading spaces rather than leading 0's

Keep reading about perlfunc:sprintf. It seems you want a format like so:

sprintf("\$%6.2f\n",$price);


Comment on Re: Can I pad a number with leading spaces rather than leading 0's
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2016-02-06 00:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (211 votes), past polls