15 (shift =~ m?zlopp?) ? 1 : 0;
25 shift =~ m?ZZIP? ? 1 : 0;
34 is(aiieee::zlopp(""), 0, "mismatch doesn't match");
35 is(aiieee::zlopp("zlopp"), 1, "match matches first time");
36 is(aiieee::zlopp(""), 0, "mismatch doesn't match");
37 is(aiieee::zlopp("zlopp"), 0, "match doesn't match second time");
38 aiieee::reset_zlopp();
39 is(aiieee::zlopp("zlopp"), 1, "match matches after reset");
40 is(aiieee::zlopp(""), 0, "mismatch doesn't match");
42 aiieee::reset_zlopp();
44 is(aiieee::zlopp(""), 0, "mismatch doesn't match");
45 is(aiieee::zlopp("zlopp"), 1, "match matches first time");
46 is(CLINK::ZZIP(""), 0, "mismatch doesn't match");
47 is(CLINK::ZZIP("ZZIP"), 1, "match matches first time");
48 is(CLINK::ZZIP(""), 0, "mismatch doesn't match");
49 is(CLINK::ZZIP("ZZIP"), 0, "match doesn't match second time");
50 is(aiieee::zlopp(""), 0, "mismatch doesn't match");
51 is(aiieee::zlopp("zlopp"), 0, "match doesn't match second time");
53 aiieee::reset_zlopp();
54 is(aiieee::zlopp("zlopp"), 1, "match matches after reset");
55 is(aiieee::zlopp(""), 0, "mismatch doesn't match");
57 is(CLINK::ZZIP(""), 0, "mismatch doesn't match");
58 is(CLINK::ZZIP("ZZIP"), 0, "match doesn't match third time");
61 is(CLINK::ZZIP("ZZIP"), 1, "match matches after reset");
62 is(CLINK::ZZIP(""), 0, "mismatch doesn't match");
69 ok !match_foo(), 'reset "" leaves patterns alone [perl #97958]';
74 package scratch { reset "a" }
75 is join("-", $scratch::a//'u', $scratch::a2//'u', $scratch::b//'u'),
83 package scratch { reset "bc" }
84 is join("-", $scratch::a//'u', $scratch::a2//'u', $scratch::b//'u',
93 package scratch { reset "a-b" }
94 is join("-", $scratch::a//'u', $scratch::a2//'u', $scratch::b//'u',
99 { no strict; ${"scratch::\0foo"} = "bar" }
101 package scratch { reset "\0a" }
102 is join("-", $scratch::a//'u', do { no strict; ${"scratch::\0foo"} }//'u'),
112 eval {require threads; 1} or
113 skip "No threads", 4;
114 foreach my $eight ('/', '?') {
115 foreach my $nine ('/', '?') {
117 $copy =~ s/8/$eight/gm;
118 $copy =~ s/9/$nine/gm;
119 fresh_perl_is($copy, "pass", "",
120 "first pattern $eight$eight, second $nine$nine");
130 # Note that there are no digits in this program, other than the placeholders
142 eval 'no warnings; sub b {}; 1' or die $@;
148 cond_wait($$l_r) until $$l_r eq "B";
154 my $lock : shared = "A";
160 $t = threads->new(\&lock_then_wipe, $r);
168 cond_wait($lock) until $lock eq "C";