summaryrefslogtreecommitdiff
path: root/pod/perldiag.pod
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-09-06 00:10:40 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-09-06 00:10:40 +0000
commit65774b4473ec9b4f766aa257cf2e463c09b82b51 (patch)
tree35c59e04b4db7af027ae8dd6addaada967b4b1b6 /pod/perldiag.pod
parent9d47228de4e01a8a1507f781857c80c42d746f87 (diff)
downloadperl-65774b4473ec9b4f766aa257cf2e463c09b82b51.tar.gz
optional warning on join(/foo/...) (reworked suggested patch
by Mark-Jason Dominus <mjd@plover.com>) p4raw-id: //depot/perl@4083
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r--pod/perldiag.pod7
1 files changed, 7 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 10808ff516..1c07a31fa6 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -112,6 +112,13 @@ your signed integers. See L<perlfunc/unpack>.
by Perl. This combination appears in an interpolated variable or a
C<'>-delimited regular expression.
+=item /%s/ should probably be written as "%s"
+
+(W) You have used a pattern where Perl expected to find a string,
+like in the first argument to C<join>. Perl will treat the true
+or false result of matching the pattern against $_ as the string,
+which is probably not what you had in mind.
+
=item %s (...) interpreted as function
(W) You've run afoul of the rule that says that any list operator followed