Just another Perl shrine | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
At least when the padding is whitespace (which the OP seemed to want), is this solution better than using (s)printf? For ex:
Please note: Don't get me wrong. For fear of fire and brimstone, the Novice that I am would not presume to criticise merlyn. It's just that I've been playing with (s)printf recently, prompting me to change a few old progs from, like: print ' ' x ( 23 - length $foo ), $foo;to: printf '%23s', $foo;Have I been I wrong or (more likely), AIMS (Am I Missing Something)? dave In reply to Re: •Re: Can you change the format pad character?
by Not_a_Number
|
|