in reply to How to use object's reference in "object" context if being used in scalar context it does something wrong?

To get a blessed reference's package name, you can use ref.

To get an answer for your other questions, I think you need to post some more information.

  • Comment on Re: How to use object's reference in "object" context if being used in scalar context it does something wrong?