Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: A Set String Legngthby perlmonkey (Hermit) |
on Jul 27, 2000 at 07:47 UTC ( [id://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
|
|