Skip to content

Commit

Permalink
Mention that without arguments slurp uses $*ARGFILES as fallback.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkramer committed Apr 24, 2018
1 parent 707ee5a commit 8101444
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/Type/IO.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ $fh.close;
Slurps the contents of the entire file into a C<Str> (or C<Buf> if C<:bin>).
Accepts C<:bin> and C<:enc> optional named parameters, with the same meaning
as L<open()|/routine/open>. The routine will C<fail> if the file does not
exist, or is a directory.
exist, or is a directory. Without any arguments, sub C<slurp> operates on
C<$*ARGFILES>, which defaults to C<$*IN> in the absence of any filenames.
=begin code :skip-test
# read entire file as (Unicode) Str
Expand Down

0 comments on commit 8101444

Please sign in to comment.