summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
Diffstat (limited to 'pod')
-rw-r--r--pod/perlfunc.pod4
-rw-r--r--pod/perlsyn.pod2
2 files changed, 4 insertions, 2 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 7cf4d3fd0a..a68c7a0836 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -1199,8 +1199,8 @@ C<eof> without the parentheses to test I<each> file in a while
}
Practical hint: you almost never need to use C<eof> in Perl, because the
-input operators return false values when they run out of data, or if there
-was an error.
+input operators typically return C<undef> when they run out of data, or if
+there was an error.
=item eval EXPR
diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod
index 0dd842d2a2..1f3ae50f2d 100644
--- a/pod/perlsyn.pod
+++ b/pod/perlsyn.pod
@@ -163,6 +163,8 @@ If the LABEL is omitted, the loop control statement
refers to the innermost enclosing loop. This may include dynamically
looking back your call-stack at run time to find the LABEL. Such
desperate behavior triggers a warning if you use the B<-w> flag.
+Unlike a C<foreach> statement, a C<while> statement never implicitly
+localises any variables.
If there is a C<continue> BLOCK, it is always executed just before the
conditional is about to be evaluated again, just like the third part of a