Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: help needed in printing the numbers

by murugu (Curate)
on Apr 05, 2006 at 09:43 UTC ( #541318=note: print w/replies, xml ) Need Help??


in reply to help needed in printing the numbers

use sprintf.

my $result = sprintf "%03d", $number;

Regards,
Murugesan Kandasamy
use perl for(;;);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://541318]
help
Chatterbox?
[shmem]: they are too close to each other
[shmem]: J.S.Bach said: "playing Clavier is darn easy. All you have to do is to push the right key with the right finger at the right time."
[shmem]: same for programming and creating bugs.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2017-04-27 14:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (508 votes). Check out past polls.