Forgot to add a test along with the commit that fixed this
}
require './test.pl';
-plan( tests => 189 );
+plan( tests => 190 );
$_ = 'david';
$a = s/david/rules/r;
tie my $kror, cowBug =>;
$kror =~ s/(?:)/""/e;
}
-pass("s/// on tied var returning a cow")
+pass("s/// on tied var returning a cow");
+
+# a test for 6502e08109cd003b2cdf39bc94ef35e52203240b
+# previously this would segfault
+
+{
+ my $s = "abc";
+ eval { $s =~ s/(.)/die/e; };
+ like($@, qr/Died at/, "s//die/e");
+}