Re: dear lazyweb: hashref instead of objects

[email protected] (Ricardo SIGNES)
Newsgroups perl.moose
Message-ID <[email protected]>
* Yuval Kogman <[email protected]> [2008-02-08T20:44:30]
> 	foreach my $class ( Class::Base->meta->subclasses ) {
> 		coerce $class from 'HashRef' => via { $class->new($_) };
> 	}

Hm.  What I really want is Role->meta->all_classes_composing, but that's not
the worst thing ever.  I'd rather have it work magically, but I can deal with
three lines for the sake of great justice!

-- 
rjbs
signature.asc (application/pgp-signature, 194 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAketC2MACgkQHu6P14fNXHMuEwCfRxw/rd68iUcVbd0Q4Cv/rmWW
rXIAoJgN8mONAzQgCfBdLEHjU8Y+4i1w
=HhEJ
-----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.