On 09/29/2016 03:52 PM, Aaron Wells wrote:

Hi Klaus,
Have you tried this?

ref $some_obj; # should give your class name as a string

Doubtless Uri will find something wrong with this 😋


glad you asked! :)

ref will return the class something is blessed into. reftype (in Scalar::Util) will return the actual data type and not the class.

the OP did ask for the data type and not the class.

thanx,

uri


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to