in reply to Re^2: using map
in thread using map
The correct format for printf is printf FORMAT_STRING, LIST so that should be:
Any ordinary (non-specifier) characters in the format string are output verbatim.
If the format contains no %specifiers, then just what is in the template gets output.
As -l doesn't affect printf, it makes it a convenient way of printing output that does not get an automatic \n appended for those rare occasions when that is required.
It is convenient, safe and a lot easier than having to add \n to every darn print statement.
Of course, say ought to be a simple alternative to -l, but a) they made it so darn inconvenient to use; b) its a pain in the neck having to switch back to print any time you need to test something under a pre-5.10 version.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: using map
by tobyink (Canon) on May 06, 2012 at 06:37 UTC | |
by jwkrahn (Abbot) on May 06, 2012 at 07:21 UTC | |
by tobyink (Canon) on May 06, 2012 at 07:24 UTC | |
by BrowserUk (Patriarch) on May 06, 2012 at 07:32 UTC | |
|
Re^4: using map
by Anonymous Monk on May 06, 2012 at 08:17 UTC | |
by BrowserUk (Patriarch) on May 06, 2012 at 08:45 UTC |