diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-02-25 21:52:22 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-02-25 21:58:17 -0800 |
commit | 26f1b91d75f251f6a9847512a8afeebac61b55da (patch) | |
tree | b17c4d14c49deb5cee9ce2f30cbb8365c877c8e9 /pod | |
parent | 2207fa4e5a04c326c157fe8acb453ee4b447205a (diff) | |
download | perl-26f1b91d75f251f6a9847512a8afeebac61b55da.tar.gz |
Reword perltie/READLINE and correct example
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perltie.pod | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pod/perltie.pod b/pod/perltie.pod index 7ef471d911..456cc60cba 100644 --- a/pod/perltie.pod +++ b/pod/perltie.pod @@ -950,11 +950,11 @@ X<READLINE> This method is called when the handle is read via C<E<lt>HANDLEE<gt>> or C<readline HANDLE>. -As per L<perlfunc/readline>, in scalar context it should return the -next line, or C<undef> if no more data. In list context it should -return all remaining lines or an empty list if no more data. The -input record separator C<$/> (see L<perlvar>) is included in the -strings, or C<$/> C<undef> means "slurp" mode. +As per L<C<readline>|perlfunc/readline>, in scalar context it should return +the next line, or C<undef> for no more data. In list context it should +return all remaining lines, or an empty list for no more data. The strings +returned should include the input record separator C<$/> (see L<perlvar>), +unless it is C<undef> (which means "slurp" mode). sub READLINE { my $r = shift; @@ -963,7 +963,7 @@ strings, or C<$/> C<undef> means "slurp" mode. "lines up\n", "to eof\n"); } else { - return "READLINE called $$r times\n"; + return "READLINE called " . ++$$r . " times\n"; } } |