Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Slurping directories makes sense on some OSes
Some OSes (eg. FreeBSD) follow the traditional Unix approach of treating
directories like files, and so slurp()ing directories on those platforms
is allowed
  • Loading branch information
cbvi committed Jul 27, 2014
1 parent 3fa5859 commit 0925cca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion S32-setting-library/IO.pod
Expand Up @@ -193,7 +193,8 @@ scope by declaring:
Slurps the entire file into a C<Str> (or C<Buf> if C<:bin>) regardless of context.
(See also C<lines>.)

The routine will C<fail> if the file does not exist, or is a directory.
The routine will C<fail> if the file does not exist, or if the file is a
directory and the platform does not support opening a directory like a file.

=item spurt

Expand Down

0 comments on commit 0925cca

Please sign in to comment.