On Mon, Jan 23, 2012 at 2:12 AM, David Christensen <
dpchr...@holgerdanske.com> wrote:

> beginners@perl.org:
>
> While coding some tests tonight, I discovered that Scalar::Util::blessed()
> considers Regexp references to be blessed.
>
>
> Is this a bug or a feature?
>

Implementation detail. Internally, regexen have their own data type, REGEXP
(which you can see with Scalar::Util::reftype), which is then 'blessed'
into the Regexp class. This actually allows some very cool tricks, but
nothing that should ever see the light of a production server, or show up
in a beginners mailing list : )

Reply via email to