Marc,
 
  The ref() don't work because it only return the name of the package with the class of the object, not the type! In my case I can't know the name of the package to make the association, I need to check the real Wx type of the object before paste to a frame to not crash the app, and if it's not of the desired type set to undef.
 
  But thanks for the reply.
 
Graciliano M. P.
 
> mma wrote...
>
> You might try ref() or in other contexts UNIVERSAL::isa().  These work with
> the Perl types, not the wxWindow types, but should be sufficient for most
> uses.
>
> mma