X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FEnglish.t;h=d7466c2d3b88911c22e552e01e6f22c30b25ccee;hb=462d8b025fb2f0b0f3b03c2b1a0b9a1d4406346c;hp=49819fc9b2f97e944d2deaee2eafd13425e91388;hpb=d5201bd266fe42b2df8b480183c08be291a1ad06;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/English.t b/lib/English.t index 49819fc..d7466c2 100755 --- a/lib/English.t +++ b/lib/English.t @@ -6,7 +6,7 @@ BEGIN { @INC = '../lib'; } -use Test::More tests => 54; +use Test::More tests => 55; use English qw( -no_match_vars ) ; use Config; @@ -142,6 +142,12 @@ main::is( $PREMATCH, 'a', '$PREMATCH defined' ); main::is( $MATCH, 'b', '$MATCH defined' ); main::is( $POSTMATCH, 'c', '$POSTMATCH defined' ); +{ + my $s = "xyz"; + $s =~ s/y/t$MATCH/; + main::is( $s, "xtyz", '$MATCH defined in right side of s///' ); +} + package C; use English qw( -no_match_vars ) ;