Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Help with Numbers..Please

by ph0enix (Friar)
on Apr 24, 2003 at 10:04 UTC ( #252823=note: print w/replies, xml ) Need Help??


in reply to Help with Numbers..Please

Numerical value of your number is 1 so the 'droping zeros' is correct behaviour. Try printf or sprintf for formating your outputs.
my $number = 1; printf '%06d', $number;
or get it back into $number variable

$number = sprintf('%06d', $number);

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2023-05-31 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?