http://qs1969.pair.com?node_id=24626


in reply to A Set String Length

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));