Re: B::Deparse fails in pure_string()
authorStephen McCamant <smcc@mit.edu>
Mon, 22 Sep 2003 20:53:57 +0000 (13:53 -0700)
committerJarkko Hietaniemi <jhi@iki.fi>
Tue, 23 Sep 2003 06:10:28 +0000 (06:10 +0000)
Message-ID: <16239.50133.367465.947398@famine.OCF.Berkeley.EDU>

p4raw-id: //depot/perl@21329

ext/B/B/Deparse.pm

index d68e823..67c61b7 100644 (file)
@@ -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;
     }