summaryrefslogtreecommitdiff
path: root/pod/perldata.pod
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-13 21:29:15 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-13 21:29:15 +0000
commit9f1b1f2d9ab55954ee07a14c4ab04bd3dd1f99d5 (patch)
treef3e99c675e49f21e2edc6600cd4c0b10b14c41d5 /pod/perldata.pod
parent828c4421567f1da54062ec5edfcc3250be409b16 (diff)
downloadperl-9f1b1f2d9ab55954ee07a14c4ab04bd3dd1f99d5.tar.gz
lexical warnings update for docs and tests (from Paul Marquess)
p4raw-id: //depot/perl@5712
Diffstat (limited to 'pod/perldata.pod')
-rw-r--r--pod/perldata.pod6
1 files changed, 4 insertions, 2 deletions
diff --git a/pod/perldata.pod b/pod/perldata.pod
index e3361e4dad..96941bd885 100644
--- a/pod/perldata.pod
+++ b/pod/perldata.pod
@@ -129,7 +129,8 @@ assignment to an array or hash evaluates the righthand side in list
context. Assignment to a list (or slice, which is just a list
anyway) also evaluates the righthand side in list context.
-When you use Perl's B<-w> command-line option, you may see warnings
+When you use the C<use warnings> pragma or Perl's B<-w> command-line
+option, you may see warnings
about useless uses of constants or functions in "void context".
Void context just means the value has been discarded, such as a
statement containing only C<"fred";> or C<getpwuid(0);>. It still
@@ -366,7 +367,8 @@ A word that has no other interpretation in the grammar will
be treated as if it were a quoted string. These are known as
"barewords". As with filehandles and labels, a bareword that consists
entirely of lowercase letters risks conflict with future reserved
-words, and if you use the B<-w> switch, Perl will warn you about any
+words, and if you use the C<use warnings> pragma or the B<-w> switch,
+Perl will warn you about any
such words. Some people may wish to outlaw barewords entirely. If you
say