This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In test.pl, change like() and unlike() to avoid copying the tested scalar.
authorNicholas Clark <nick@ccl4.org>
Thu, 3 Mar 2011 08:30:16 +0000 (08:30 +0000)
committerNicholas Clark <nick@ccl4.org>
Sat, 5 Mar 2011 20:26:07 +0000 (20:26 +0000)
commit0973e8e6048d1899077f7c2ea4b16995516bf10e
treec6a722b4d10c2083ecfbcbde0527ab4aded0e34d
parent76895e89c1e609b1a740ae887e6bcf7ece9d4222
In test.pl, change like() and unlike() to avoid copying the tested scalar.

This means that side effects of matching regexps on it are maintained,
specifically the value of pos, making test.pl more useful for tests in t/re.

This is a subtle divergence from the behaviour of Test::More::{like,unlike}
t/test.pl