summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-09-12 23:10:58 +0000
committerNicholas Clark <nick@ccl4.org>2007-09-12 23:10:58 +0000
commit955623668f666142789ec391e521b0b6705cea7b (patch)
tree1fa1bc378fafdc86c74d341108f1385393811278 /ext
parent3952c29af3f3c84465fe5840218071974ce033e4 (diff)
downloadperl-955623668f666142789ec391e521b0b6705cea7b.tar.gz
Add the missing assignment to op_last that change 31798 missed out.
With this, state $zok = ...; will deparse. p4raw-id: //depot/perl@31857
Diffstat (limited to 'ext')
-rw-r--r--ext/B/B/Deparse.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/B/B/Deparse.pm b/ext/B/B/Deparse.pm
index d0b18be24c..024f3ebaf8 100644
--- a/ext/B/B/Deparse.pm
+++ b/ext/B/B/Deparse.pm
@@ -2557,6 +2557,14 @@ sub pp_cond_expr {
return $head . join($cuddle, "", @elsifs) . $false;
}
+sub pp_once {
+ my ($self, $op, $cx) = @_;
+ my $cond = $op->first;
+ my $true = $cond->sibling;
+
+ return $self->deparse($true, $cx);
+}
+
sub loop_common {
my $self = shift;
my($op, $cx, $init) = @_;