Re: Moose quick-ref card

[email protected] (Oliver Gorwits)
Newsgroups perl.moose
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Oliver Gorwits wrote:
> I added this but using get_metaclass_by_name($package) instead

Now reverted to __PACKAGE__->meta after being enlightened on IRC.

I can hear my wife's voice in my head: "stop trying to grow a brain,
dear, and just do what you're told." :-)

Apparently if you're a client of Moose, then __PACKAGE__->meta is
the way to go, but if you're writing MooseX:: extensions then it's
better to go the Class::MOP route to meta as described elsewhere.

...I think.

- --
Oliver Gorwits, Network and Telecommunications Group,
Oxford University Computing Services
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJZS+J2NPq7pwWBt4RAoUeAKCWHEoNj3okBPQjlZRhmDzvnTl7DgCg3dAf
lPcYa+Rw5kW4cOs35xzgGNs=
=ywJi
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.