in reply to (golf)String Concats or: playing with substr()
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!)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: (golf)String Concats or: playing with substr()
by one4k4 (Hermit) on May 18, 2001 at 23:31 UTC | |
by chipmunk (Parson) on May 18, 2001 at 23:37 UTC | |
by Albannach (Monsignor) on May 18, 2001 at 23:42 UTC | |
by one4k4 (Hermit) on May 21, 2001 at 17:24 UTC |