Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Left padding a number with zeros: PerlFaq method didn't work for me.

by esskar (Deacon)
on Jan 17, 2006 at 03:33 UTC ( #523654=note: print w/replies, xml ) Need Help??


in reply to Left padding a number with zeros: PerlFaq method didn't work for me.

my $len = 10; print "1: [", sprintf("%${len}s", "*"), "]\n"; print "2: [", sprintf("%*s", $len, "*"), "]\n";
i get what i the say
  • Comment on Re: Left padding a number with zeros: PerlFaq method didn't work for me.
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://523654]
help
Chatterbox?
LanX watching a rerun of Bladerunner at TV, interesting concept of future there ...
[LanX]: ... smoking is still legal.

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2017-12-13 19:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (377 votes). Check out past polls.

    Notices?