Message-ID: <
20070626183350.GA11336@ostwald>
p4raw-id: //depot/perl@31552
if ($rfirst[-1]->uni ne $llast[-1]->uni) {
push @newkids, @rfirst;
}
-
+ # remove the fake '\n' if /e and '#' in replacement.
+ if (@mods and $mods[0] =~ m/e/ and ($self->madness('R'))[0]->uni =~ m/#/) {
+ unshift @rlast, bless {}, 'chomp'; # hack to remove '\n'
+ }
push @newkids, $bits->{repl}, @rlast, @mods;
my $retval = $self->newtype->new(Kids => [@newkids]);
}
$text .= $newtext;
}
+ elsif ($type eq "chomp") {
+ $text =~ s/\n$//g;
+ }
elsif ($type) {
$text .= $kid->p5text(@_);
}
use Test::Differences;
our %failing = map { $_, 1 } qw|
-../t/op/subst.t
-
../t/comp/require.t
../t/io/layers.t
../t/op/symbolcache.t
../t/op/threads.t
+
+../t/op/exec.t
+../t/io/say.t
|;
my @files;
########
for (; $a<3; $a++) { }
########
-# TODO
+#
s//$#foo/ge;
########
-# TODO
+#
s//m#.#/ge;
########
-# TODO
+#
eval { require 5.005 }
########
# TODO Reduced test case from t/io/layers.t