This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix readline example in perlfunc
[perl5.git]
/
pod
/
perlfunc.pod
diff --git
a/pod/perlfunc.pod
b/pod/perlfunc.pod
index
826df27
..
4593352
100644
(file)
--- a/
pod/perlfunc.pod
+++ b/
pod/perlfunc.pod
@@
-4349,8
+4349,8
@@
steps to ensure that C<readline> was successful.
for (;;) {
undef $!;
unless (defined( $line = <> )) {
+ last if eof;
die $! if $!;
- last; # reached EOF
}
# ...
}