p4raw-id: //depot/perl@30747
o->op_private |= OPpOPEN_OUT_CRLF;
}
}
- if (o->op_type == OP_BACKTICK)
+ if (o->op_type == OP_BACKTICK) {
+ if (!(o->op_flags & OPf_KIDS)) {
+ op_free(o);
+ return newUNOP(OP_BACKTICK, 0, newDEFSVOP());
+ }
return o;
+ }
{
/* In case of three-arg dup open remove strictness
* from the last arg if it is a bareword. */
omitted, uses C<$_>.
=item readpipe EXPR
+
+=item readpipe
X<readpipe>
EXPR is executed as a system command.
This is the internal function implementing the C<qx/EXPR/>
operator, but you can use it directly. The C<qx/EXPR/>
operator is discussed in more detail in L<perlop/"I/O Operators">.
+If EXPR is omitted, uses C<$_>.
=item recv SOCKET,SCALAR,LENGTH,FLAGS
X<recv>
skip_all("Tests mostly usesless on MacOS") if $^O eq 'MacOS';
-plan(tests => 21);
+plan(tests => 22);
my $Perl = which_perl();
$Perl -le "print 'ok'"
END
+{
+ my $_ = qq($Perl -le "print 'ok'");
+ is( readpipe, "ok\n", 'readpipe default argument' );
+}
TODO: {
my $tnum = curr_test();