> I really don't like the addition of new globals Yeah, I don't like it either:) > wouldn't that really screw over code that does something like this: > > my $qr = $qr; > > if (ref($qr) eq 'Regexp')) # you probably shouldnt do this anyway? > { > } If you were to import a lexical pragma that changes the defalt package for qr// constructs into a scope that expects them to be in the Regexp package then yes, it would screw with that code. > I think this should still work, but I am not sure: > > if ($qr->isa('Regexp')) > { > } > Yes, ->isa works since the qr// object is blessed with sv_bless()Thread Previous | Thread Next