the minus sign means the padding goes to the right of the string, so you will get the spaces between your string and the semicolonprintf("%-10s;", $string);
node 20519 has all the info you need about printf.
Good luck,
-Mark
In reply to Re: A Set String Legngth
by young perlhopper
in thread A Set String Length
by zdog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |