Wow, has it really been nearly five years?!
So, is the mg_obj member in a different place from where normal representations are stored for scalars? Point is, I guess, is that it's done in a totally different way than just blessing a scalar, which is how we would do something within the Perl 5 language.
—John | [reply] [Watch: Dir/Any] |
Yes. The stringification of a Regexp object goes through the magic system. The mg_obj member is how a Regexp object points to the internal representation of itself (the regexp struct).
| [reply] [Watch: Dir/Any] |
| [reply] [Watch: Dir/Any] [d/l] [select] |