Skip to content

Commit f9eb8ef

Browse files
committed
More stuff for issue #1472
This should make it closable.
1 parent 22b7bb2 commit f9eb8ef

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/Language/traps.pod6

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,18 @@ programmatically generated output, and
804804
L«C<Str.lines>|/type/Str#method_lines» when working with user-written
805805
texts.
806806
807+
Use C<$data.split(“\n”)> in all cases where the original L<IO::Handle>
808+
is not available.
809+
810+
=comment RT #131923
811+
812+
If you are using L<Proc::Async>, then there is currently no easy way
813+
to make it split data the right way. You can try reading the whole
814+
output and then using L«C<Str.split>|/type/Str#method_split» (not viable
815+
if you are dealing with large data) or writing your own logic to split
816+
the incoming data the way you need. Same applies if your data
817+
is null-separated.
818+
807819
=head1 Exception Handling
808820
809821
=head2 Sunk C<Proc>

0 commit comments

Comments
 (0)