How can I determine the type of a blessed reference in Perl?

后端 未结 3 534
长情又很酷
长情又很酷 2020-12-30 01:31

In Perl, an object is just a reference to any of the basic Perl data types that has been blessed into a particular class. When you use the ref() function on an unblessed re

3条回答
  •  情深已故
    2020-12-30 02:05

    You probably shouldn't do this. The underlying type of an object is an implementation detail you shouldn't mess with. Why would you want to know this?

提交回复
热议问题