Guillermo Roditi wrote: > Please take a look at Class::MOP and Class::MOP::Class. Sounds like a little > ->meta foo would makeyour life easier... Introspection is good and good for > you! > http://search.cpan.org/~stevan/Class-MOP-0.37/
Indeed. It even includes one of the things I was looking for - a facility to create (simulated) anonymous classes: http://search.cpan.org/~stevan/Class-MOP-0.37/lib/Class/MOP/Class.pm create_anon_class (superclasses => [EMAIL PROTECTED], methods => ?%methods, attributes => ?%attributes) This will create an anonymous class, it works much like create but it does not need a $package_name. Instead it will create a suitably unique package name for you to stash things into. There's an intro/review of Class::MOP here: http://www.oreillynet.com/onlamp/blog/2006/06/cpan_module_review_classmop.html but it just scratches the surface and doesn't really get into the stuff in Class::MOP::Class that's of relevance to my application. Thanks for the pointer. -Tom -- Tom Metro Venture Logic, Newton, MA, USA "Enterprise solutions through open source." Professional Profile: http://tmetro.venturelogic.com/ _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

