Craig A. Berry [Sat, 6 Mar 2004 22:50:25 +0000 (16:50 -0600)]
From: "Craig A. Berry" <craigberry@mac.com>
Message-ID: <
404AAA11.8050001@mac.com>
p4raw-id: //depot/perl@22456
# savestack, due to the early freeing of the anon closure
my $got = runperl(stderr => 1, prog =>
-'sub d {die} my $f; $f = sub {my $x=1; $f = 0; d}; eval{$f->()}; print qw(ok)'
+'sub d {die} my $f; $f = sub {my $x=1; $f = 0; d}; eval{$f->()}; print qq(ok\n)'
);
- test { $got eq 'ok' };
+ test { $got eq "ok\n" };
}
# After newsub is redefined outside the BEGIN, it's CvOUTSIDE should point