17 object_ok($a, 'Regexp');
19 object_ok($b, 'Regexp');
23 isnt($a + 0, $b + 0, 'Not the same object');
28 object_ok($a, 'Regexp');
29 object_ok($b1, 'Pie');
38 isnt($c + 0, $d + 0, 'Not the same object');
46 # Assignment to an implicitly blessed Regexp object retains the class
47 # (No different from direct value assignment to any other blessed SV
49 object_ok($d, 'Regexp');
50 like("$d", qr/\ARegexp=SCALAR\(0x[0-9a-f]+\)\z/);
52 # As does an explicitly blessed Regexp object.
54 my $e = bless qr/Faux Pie/, 'Stew';
56 object_ok($e, 'Stew');
60 object_ok($e, 'Stew');
61 like("$e", qr/\Stew=SCALAR\(0x[0-9a-f]+\)\z/);