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

Re: Re: •Re: Re: Help with number conversion

by Juerd (Abbot)
on Apr 03, 2002 at 09:22 UTC ( [id://156271]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $number = 42;
    $number = (' ' x (3 - length $number)) . $number | "000";
    
  2. or download this
    $number = 42;
    $number = ('0' x (3 - length $number)) . $number;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-25 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found