in reply to Re: Re: Re: semantics differences, &ref and &UNIVERSAL::isa()
in thread semantics differences, &ref and &UNIVERSAL::isa()

ref returns the base type that an object is, but not a package/object-type.

Reread docs :) . For blessed variables ref returns package into which variable is blessed.

Normally one uses ref with objects to check if they belong to some specific class and UNIVERSAL::isa with objects to check if they belong to some class or its subclass.

--
Ilya Martynov (http://martynov.org/)

  • Comment on Re: Re: Re: Re: semantics differences, &ref and &UNIVERSAL::isa()