Adrian M. Enache [Sun, 2 Mar 2003 06:05:22 +0000 (08:05 +0200)]
Message-ID: <
20030302040522.GB4905@ratsnest.hole>
p4raw-id: //depot/perl@18841
}
require './test.pl';
-plan( tests => 128 );
+plan( tests => 129 );
$x = 'foo';
$_ = "x";
s/(1)(2)(3)/$#- (@-)/;
is($_, "3 (0 0 1 2)", '#20682 @- not visible in replacement');
+# [perl #20682] $^N not visible in replacement
+$_ = "abc";
+/(a)/; s/(b)|(c)/-$^N/g;
+is($_,'a-b-c','#20682 $^N not visible in replacement');