in reply to Moose identify module type

Why do you need it? Normally, you should just check whether the object inherits from a class you know (via $obj->isa('Class')) or has composed a role you know (via $obj->does('Role')).

To check the attributes, you need the $obj->meta->get_attribute_list (or even get_all_attributes for inherited ones). See Class::MOP::Class.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^2: Moose identify module type
by jorba (Sexton) on Mar 17, 2018 at 00:34 UTC
    Gents (or Ladies) Thanx very much, you've given me more than I needed Jorb