From: Rafael Garcia-Suarez Date: Sat, 31 Mar 2007 14:11:40 +0000 (+0000) Subject: Fix bug #42224, perl -MO=Deparse -e 'print readpipe $x, $y' broken X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=85675c4c3c202eac297944e0d68db3b7fe625246;p=p5sagit%2Fp5-mst-13.2.git Fix bug #42224, perl -MO=Deparse -e 'print readpipe $x, $y' broken p4raw-id: //depot/perl@30811 --- diff --git a/ext/B/B/Deparse.pm b/ext/B/B/Deparse.pm index 224410c..34339cc 100644 --- a/ext/B/B/Deparse.pm +++ b/ext/B/B/Deparse.pm @@ -3725,8 +3725,10 @@ sub dq { sub pp_backtick { my $self = shift; my($op, $cx) = @_; - # skip pushmark - return single_delim("qx", '`', $self->dq($op->first->sibling)); + # skip pushmark if it exists (readpipe() vs ``) + my $child = $op->first->sibling->isa('B::NULL') + ? $op->first->first : $op->first->sibling; + return single_delim("qx", '`', $self->dq($child)); } sub dquote {