projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
c675721
)
Fix readline example in perlfunc
Rafael Garcia-Suarez [Mon, 15 Jun 2009 14:16:17 +0000 (16:16 +0200)]
Only check $! if an error was encountered (that is, not at end of file)
pod/perlfunc.pod
patch
|
blob
|
blame
|
history
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
}
# ...
}