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/)
In reply to Re: Re: Re: Re: semantics differences, &ref and &UNIVERSAL::isa()
by IlyaM
in thread semantics differences, &ref and &UNIVERSAL::isa()
by dakedesu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |