[ic] Should Util::copyref copy coderefs?

Mike Heins mike at perusion.com
Fri Dec 19 22:17:56 EST 2003


Quoting John Young (john_young at sonic.net):
> 
> Does anybody know whether or not it is intentional that 
> Vend::Util::copyref()
> does not copy coderefs (references to subroutines)?

How would you go about copying a coderef? Remember, that routine
makes a copy of dereferenced items, not references.

If you want to look at what Storable, FreezeThaw and some others
have done, you will see they don't copy coderefs either, though I
think some are trying to use B::DeParse to try and get the equivalent.

-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.765.647.1295      <mike at perusion.com>

People who want to share their religious views with you
almost never want you to share yours with them. -- Dave Barry


More information about the interchange-users mailing list