We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63fb6eb commit e7c25b1Copy full SHA for e7c25b1
lib/Type/IO/Handle.pod
@@ -94,6 +94,14 @@ Return the current position of the file pointer in bytes.
94
95
=head2 method slurp-rest
96
97
+ multi method slurp-rest(IO::Handle:D: :$bin! --> Buf)
98
+ multi method slurp-rest(IO::Handle:D: :$enc --> Str)
99
+
100
+Return the remaining content of the file from the current file position
101
+(which may have been set by previous reads or by C<seek>.) If the
102
+adverb C<:bin> is provided a L<Buf|/lib/Type/Buf> will be returned,
103
+otherwise the return will be a C<Str> with the optional encoding C<:enc>.
104
105
=head2 method close
106
107
Will close a previously opened filehandle.
0 commit comments