v_melnik has asked for the wisdom of the Perl Monks concerning the following question:
Maybe this question is way too simple, but the help will be greatly appreciated.
I want sprintf("%d %ss have been loaded", 13, "volume"); to return: "13 volumes have been loaded". In other words, I want to use "s" character after "%s" in sprintf(). How to do that?
Thanks to all!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sprintf("%ss", ...)
by AppleFritter (Vicar) on Jul 09, 2014 at 20:50 UTC | |
by v_melnik (Scribe) on Jul 09, 2014 at 21:13 UTC | |
by AppleFritter (Vicar) on Jul 09, 2014 at 21:35 UTC | |
|
Re: sprintf("%ss", ...)
by Jim (Curate) on Jul 09, 2014 at 21:39 UTC | |
|
Re: sprintf("%ss", ...)
by Laurent_R (Canon) on Jul 09, 2014 at 21:12 UTC |