might be inherited by a derived class. See L<perltoot> and L<perlobj>
for more about the blessing (and blessings) of objects.
+Creating objects in lowercased CLASSNAMEs should be avoided. Such
+namespaces should be considered reserved for Perl pragmata and objects
+that may be created to implement internal operations.
+
+See L<perlmod/"Perl Modules">.
+
=item caller EXPR
=item caller
djSP;
register PMOP *pm = cPMOP;
SV *rv = sv_newmortal();
- SV *sv = newSVrv(rv, "Regexp");
+ SV *sv = newSVrv(rv, "re");
sv_magic(sv,(SV*)ReREFCNT_inc(pm->op_pmregexp),'r',0,0);
RETURNX(PUSHs(rv));
}
if ( ((SvFLAGS(sv) &
(SVs_OBJECT|SVf_OK|SVs_GMG|SVs_SMG|SVs_RMG))
== (SVs_OBJECT|SVs_RMG))
- && strEQ(s=HvNAME(SvSTASH(sv)), "Regexp")
+ && strEQ(s=HvNAME(SvSTASH(sv)), "re")
&& (mg = mg_find(sv, 'r'))) {
dTHR;
regexp *re = (regexp *)mg->mg_obj;
/* Pointer to RE compiler */
PERLVARI(Tregexecp, regexec_t, FUNC_NAME_TO_PTR(regexec_flags))
/* Pointer to RE executer */
-PERLVARI(Treginterp_cnt,int, 0) /* Whether `Regexp'
+PERLVARI(Treginterp_cnt,int, 0) /* Whether `re'
was interpolated. */
#ifdef DEBUGGING
PERLVARI(Twatchaddr, char **, 0)