diff options
author | Robin Barker <RMBarker@cpan.org> | 2003-06-11 19:10:14 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-06-12 20:49:25 +0000 |
commit | dca6e23fb83957e896abba24cceb553cbf56fb78 (patch) | |
tree | 5c250bf50f16eda93a9c311c1ff60f94f728bdd9 /pod/perldiag.pod | |
parent | f93414403b07cda0cb271cd283f020f4981ff2c8 (diff) | |
download | perl-dca6e23fb83957e896abba24cceb553cbf56fb78.tar.gz |
Add a new warning, "Newline in left-justified string for printf/sprintf"
to be issued if the string to be left-justified by s?printf contains
a newline.
Subject: [PATCH] RE: [perl #22599] Strange behaviour when combining foreac h and printf
Message-ID: <533D273D4014D411AB1D00062938C4D904046571@hotel.npl.co.uk>
p4raw-id: //depot/perl@19752
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r-- | pod/perldiag.pod | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index e2728d1798..4d9501644b 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -2222,6 +2222,15 @@ C<??> appear to be nested quantifiers, but aren't. See L<perlre>. (S internal) The symbol in question was declared but somehow went out of scope before it could possibly have been used. +=item Newline in left-justified string for %s + +(W printf) There is a newline in a string to be left justified by +C<printf> or C<sprintf>. + +The padding spaces will appear after the newline, which is probably not +what you wanted. Usually you should remove the newline from the string +and put formatting characters in the C<sprintf> format. + =item No %s allowed while running setuid (F) Certain operations are deemed to be too insecure for a setuid or |