Skip to content

Commit fe43a9c

Browse files
committed
(perl #127780) point backtick users at the open pragma
1 parent 7a928d9 commit fe43a9c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pod/perlop.pod

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2316,6 +2316,12 @@ failure modes by inspecting C<$?> like this:
23162316
printf "child exited with value %d\n", $? >> 8;
23172317
}
23182318

2319+
Use the L<open> pragma to control the I/O layers used when reading the
2320+
output of the command, for example:
2321+
2322+
use open IN => ":encoding(UTF-8)";
2323+
my $x = `cmd-producing-utf-8`;
2324+
23192325
See L</"I/O Operators"> for more discussion.
23202326

23212327
=item C<qw/I<STRING>/>

0 commit comments

Comments
 (0)