LanX has asked for the wisdom of the Perl Monks concerning the following question:
DB<71> $code = sub {} DB<72> p ref $code CODE DB<73> *isa = \&UNIVERSAL::isa # import DB<74> p isa($code,"CODE") # ??? 1 DB<75>
Where is this behavior of isa() documented and why would one want to do this?
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: isa for ref?
by tobyink (Canon) on Jun 20, 2020 at 22:14 UTC | |
by haj (Vicar) on Jun 21, 2020 at 12:49 UTC | |
|
Re: isa for ref?
by choroba (Cardinal) on Jun 20, 2020 at 22:14 UTC | |
by LanX (Saint) on Jun 20, 2020 at 22:39 UTC |