This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Document 'Possible attempt to separate words with commas'
authorGisle Aas <gisle@aas.no>
Tue, 6 May 1997 21:27:55 +0000 (23:27 +0200)
committerChip Salzenberg <chip@atlantic.net>
Wed, 7 May 1997 12:00:00 +0000 (00:00 +1200)
Perhaps we should just document it:

p5p-msgid: hyb9snvdw.fsf@bergen.sn.no

pod/perlop.pod

index 3734477..81efcb2 100644 (file)
@@ -817,6 +817,11 @@ Some frequently seen examples:
     use POSIX qw( setlocale localeconv )
     @EXPORT = qw( foo bar baz );
 
+A common mistake is to try to separate the words with comma or to put
+comments into a multi-line qw-string.  For this reason the C<-w>
+switch produce warnings if the STRING contains the "," or the "#"
+character.
+
 =item s/PATTERN/REPLACEMENT/egimosx
 
 Searches a string for a pattern, and if found, replaces that pattern