Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: sprintf zero-fill issue

by Moron (Curate)
on Jun 28, 2007 at 09:24 UTC ( #623837=note: print w/ replies, xml ) Need Help??


in reply to sprintf zero-fill issue

I tend to do this:

sub Lzero { my ( $input, $padToLen ) = @_; substr( ( '0' x $padToLen ) . $input , -$padToLen ); }
__________________________________________________________________________________

^M Free your mind!


Comment on Re: sprintf zero-fill issue
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2015-07-02 04:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (27 votes), past polls