Skip to content

Commit e145a3c

Browse files
committed
Update IO::Handle.seek parameters documentation
1 parent e132d9b commit e145a3c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

doc/Type/IO/Handle.pod

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,24 +102,25 @@ characters.
102102
103103
=head2 method seek
104104
105-
method seek(IO::Handle:D: Int:D $offset, Int:D $whence)
105+
method seek(IO::Handle:D: Int:D $offset, SeekType:D $whence --> True)
106106
107107
Move the file pointer (that is the position at which any subsequent read
108108
or write operations will begin,) to the byte position specified by
109109
C<$offset> relative to the location specified by C<$whence> which may be
110110
one of:
111111
112-
=item 0
112+
=item SeekFromBeginning
113113
114114
The beginning of the file.
115115
116-
=item 1
116+
=item SeekFromCurrent
117117
118118
The current position in the file.
119119
120-
=item 2
120+
=item SeekFromEnd
121121
122-
The end of the file.
122+
The end of the file. Please note that you need to specify a negative
123+
offset if you want to position before the end of the file.
123124
124125
=head2 method tell
125126

0 commit comments

Comments
 (0)