From 65774b4473ec9b4f766aa257cf2e463c09b82b51 Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Mon, 6 Sep 1999 00:10:40 +0000 Subject: optional warning on join(/foo/...) (reworked suggested patch by Mark-Jason Dominus ) p4raw-id: //depot/perl@4083 --- pod/perldiag.pod | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pod/perldiag.pod') 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. 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. 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 -- cgit v1.2.1