From: Stephen McCamant Date: Mon, 22 Sep 2003 20:53:57 +0000 (-0700) Subject: Re: B::Deparse fails in pure_string() X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8e0b04c797634d42e2e4586b2684cb43288cfb04;p=p5sagit%2Fp5-mst-13.2.git Re: B::Deparse fails in pure_string() Message-ID: <16239.50133.367465.947398@famine.OCF.Berkeley.EDU> p4raw-id: //depot/perl@21329 --- diff --git a/ext/B/B/Deparse.pm b/ext/B/B/Deparse.pm index d68e823..67c61b7 100644 --- a/ext/B/B/Deparse.pm +++ b/ext/B/B/Deparse.pm @@ -3912,8 +3912,9 @@ sub pure_string { elsif (is_scalar($op) || $type =~ /^[ah]elem$/) { return 1; } - elsif ($type eq "null" and not null $op->first and - $op->first->name eq "null" and not null $op->first->first and + elsif ($type eq "null" and $op->can('first') and not null $op->first and + $op->first->name eq "null" and $op->first->can('first') + and not null $op->first->first and $op->first->first->name eq "aelemfast") { return 1; }