Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Clarify IO::CatHandle.words/.lines
Even if :$close is false, the handle switching mechanism will still close
consumed handles. Otherwise, we'd hit the open files limit fairly quickly.
  • Loading branch information
zoffixznet committed Sep 16, 2018
1 parent 121795e commit 4a48a5c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/Type/IO/CatHandle.pod6
Expand Up @@ -306,6 +306,9 @@ IO::CatHandle.new($f1, $f2).lines.perl.say;
# OUTPUT: «("foo", "bar", "meow").Seq␤»
=end code
Note: if C<:$close> is C<False>, fully-consumed handles are B<still> going
to be closed.
=head2 method lock
Defined as:
Expand Down Expand Up @@ -736,6 +739,9 @@ IO::CatHandle.new($f1, $f2).words.perl.say;
# OUTPUT: «("foo", "bar", "meow").Seq␤»
=end code
Note: if C<:$close> is C<False>, fully-consumed handles are B<still> going
to be closed.
=head1 NYI Methods
The L<IO::CatHandle> type overrides these methods to throw C<X::NYI>
Expand Down

0 comments on commit 4a48a5c

Please sign in to comment.