Skip to content

Commit d4b482b

Browse files
committed
Adds dependence to avoid test error
Also adds links and some explanations. This closes #2383 closes #2385
1 parent 912fdf7 commit d4b482b

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

META6.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@
88
"build-depends": [
99
"File::Find"
1010
],
11-
"depends": [
12-
"LWP::Simple:ver<0.101+>",
13-
"URI",
14-
"File::Temp",
15-
"JSON::Fast",
16-
"Pod::To::BigPage:ver<0.4.0+>",
17-
"Pod::To::HTML:ver<0.3.19+>",
18-
"OO::Monitors",
19-
"File::Find",
20-
"Test::META"
11+
"depends": [
12+
"IO::Socket::SSL",
13+
"LWP::Simple:ver<0.101+>",
14+
"URI",
15+
"File::Temp",
16+
"JSON::Fast",
17+
"Pod::To::BigPage:ver<0.4.0+>",
18+
"Pod::To::HTML:ver<0.3.19+>",
19+
"OO::Monitors",
20+
"File::Find",
21+
"Test::META"
2122
],
2223
"tags": [
2324
"perl6","pod6","documentation", "reference"

doc/Type/IO.pod6

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,14 @@ Defined as:
304304
multi sub slurp(IO::Handle:D $fh = $*ARGFILES, |c)
305305
multi sub slurp(IO() $path, |c)
306306
307-
Slurps the contents of the entire file into a C<Str> (or C<Buf> if C<:bin>).
308-
Accepts C<:bin> and C<:enc> optional named parameters, with the same meaning
309-
as L<open()|/routine/open>. The routine will C<fail> if the file does not
310-
exist, or is a directory. Without any arguments, sub C<slurp> operates on
311-
C<$*ARGFILES>, which defaults to C<$*IN> in the absence of any filenames.
307+
Slurps the contents of the entire file into a C<Str> (or C<Buf> if
308+
C<:bin>). Accepts C<:bin> and C<:enc> optional named parameters, with
309+
the same meaning as L<open()|/routine/open>; possible encodings are the
310+
same as in all the other C<IO> methods and are listed in
311+
L<C<encoding>|/type/IO::Handle#method_encoding> routine. The routine
312+
will C<fail> if the file does not exist, or is a directory. Without any
313+
arguments, sub C<slurp> operates on C<$*ARGFILES>, which defaults to
314+
C<$*IN> in the absence of any filenames.
312315
313316
=begin code :skip-test
314317
# read entire file as (Unicode) Str

0 commit comments

Comments
 (0)