Skip to content

Commit 63fb6eb

Browse files
committed
document seek/tell somewhat
also slurp is deprecated
1 parent 86bd241 commit 63fb6eb

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

lib/Type/IO/Handle.pod

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,32 @@ Binary writing; writes C<$buf> to the filehandle.
6767
6868
=head2 method seek
6969
70+
method seek(IO::Handle:D: Int:D $offset, Int:D $whence)
71+
72+
Move the file pointer (that is the position at which any subsequent read
73+
or write operations will begin,) to the byte position specified by
74+
C<$offset> relative to the location specified by C<$whence> which may be
75+
one of:
76+
77+
=item 0
78+
79+
The beginning of the file.
80+
81+
=item 1
82+
83+
The current position in the file.
84+
85+
=item 2
86+
87+
The end of the file.
88+
7089
=head2 method tell
7190
72-
=head2 method slurp
91+
method tell(IO::Handle:D: --> Int)
92+
93+
Return the current position of the file pointer in bytes.
7394
74-
=head2 method spurt
95+
=head2 method slurp-rest
7596
7697
=head2 method close
7798

0 commit comments

Comments
 (0)