sprintf( "%${length}s", $string );
UpdateYeah, yeah, I meant "s" in the format string instead of "f". Really, I did! (I had to look up what the string code was on sprintf's page!)
In reply to Re: (golf)String Concats or: playing with substr()
by Masem
in thread (golf)String Concats or: playing with substr()
by one4k4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |