blob: 27eb309af0dafd2a7fb11cfc030676d817258d6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!./perl
# This tests that the (?[...]) feature doesn't introduce unexpected
# differences from regular bracketed character classes. It just sets a flag
# and calls regexp.t which will run through its test suite, modifiying the
# tests to use (?[...]) instead wherever the test uses [].
BEGIN { $regex_sets = 1; }
for $file ('./re/regexp.t', './t/re/regexp.t', ':re:regexp.t') {
if (-r $file) {
do $file or die $@;
exit;
}
}
die "Cannot find ./re/regexp.t or ./t/re/regexp.t\n";
|