http://www.perlmonks.org?node_id=601063


in reply to Re: RFC: Sub::Auto - lazy loading revisited
in thread RFC: Sub::Auto - lazy loading revisited (now: AutoReloader)

Thanks, Scalar::Util's reftype is the way to go. The sub require returns could be blessed, indeed - but overloaded? hmm...

Or do you mean, failure if UNIVERSAL::isa is overloaded?

<update>

Still musing whether to patch AutoLoader...

</update>

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
  • Comment on Re^2: RFC: Sub::Auto - lazy loading revisited