summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Baker <scott@perturb.org>2022-11-03 10:05:45 -0700
committerPaul Evans <leonerd@leonerd.org.uk>2022-12-17 12:24:15 +0000
commit4b3de616305732aff8a46dc2e34ec773233c9291 (patch)
treedaa5ba4b861c2f5539a862894723bb79ccddcb02
parentabf573d1658ed41e29b6dae390645908838b313b (diff)
downloadperl-4b3de616305732aff8a46dc2e34ec773233c9291.tar.gz
<> to readline documentation updates
-rw-r--r--pod/perlfunc.pod2
1 files changed, 1 insertions, 1 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 81cd68eb1e..5cbd3401b9 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -4584,7 +4584,7 @@ Reading from a file:
or die "Can't open < input.txt: $!";
# Process every line in input.txt
- while (my $line = <$fh>) {
+ while (my $line = readline($fh)) {
#
# ... do something interesting with $line here ...
#