summaryrefslogtreecommitdiff
path: root/pod/perltie.pod
diff options
context:
space:
mode:
authorChip Salzenberg <chip@pobox.com>2008-12-10 06:45:24 -0800
committerSteve Peters <steve@fisharerojo.org>2008-12-11 17:32:54 +0000
commit32e653230c7ccc7fa595b1ab68502c6eb66ff980 (patch)
tree3c50d66d952c0ea70ea4c364ca2064830c90c663 /pod/perltie.pod
parent94ccb8071447cc02333d411ff69ed91cc131500a (diff)
downloadperl-32e653230c7ccc7fa595b1ab68502c6eb66ff980.tar.gz
[perl #60978] [PATCH] Tied filehandles can't distinguish eof forms
Message-ID: <20081210224524.GD18817@tytlal.topaz.cx> p4raw-id: //depot/perl@35074
Diffstat (limited to 'pod/perltie.pod')
-rw-r--r--pod/perltie.pod13
1 files changed, 13 insertions, 0 deletions
diff --git a/pod/perltie.pod b/pod/perltie.pod
index 162272bd74..9f26473879 100644
--- a/pod/perltie.pod
+++ b/pod/perltie.pod
@@ -952,6 +952,19 @@ This method will be called when the C<getc> function is called.
sub GETC { print "Don't GETC, Get Perl"; return "a"; }
+=item EOF this
+X<EOF>
+
+This method will be called when the C<eof> function is called.
+
+Starting with Perl 5.12, an additional integer parameter will be passed. It
+will be zero if C<eof> is called without parameter; C<1> if C<eof> is given
+a filehandle as a parameter, e.g. C<eof(FH)>; and C<2> in the very special
+case that the tied filehandle is C<ARGV> and C<eof> is called with an empty
+parameter list, e.g. C<eof()>.
+
+ sub EOF { not length $stringbuf }
+
=item CLOSE this
X<CLOSE>