Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Prepending 0's to 1000

by guha (Priest)
on Oct 16, 2004 at 21:55 UTC ( #399830=note: print w/ replies, xml ) Need Help??


in reply to Prepending 0's to 1000

You will find good use of the printf/sprintf functions.

perl -e "printf('%04d', 33)"

__OUTPUT__
0033


Comment on Re: Prepending 0's to 1000
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2015-08-02 21:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (13 votes), past polls