![]() |
|
We don't bite newbies here... much | |
PerlMonks |
Re: A Set String Legngthby perlmonkey (Hermit) |
on Jul 27, 2000 at 07:47 UTC ( #24626=note: print w/replies, xml ) | Need Help?? |
And just to be obnoxious, you can use sprintf, like
young perlhopper.
$foo = sprintf("%-10s", "Hello"); or you can do $String .= " " x (10-length($String));
In Section
Seekers of Perl Wisdom
|
|