[Israel.pm] Exporting a Memoized function

Shmuel Fomberg shmuelfomberg at gmail.com
Thu Jun 27 02:36:39 PDT 2013


On Thu, Jun 27, 2013 at 6:26 PM, Shmuel Fomberg wrote:

> Hi All.
>
> If I want to memorize a function:
>
> memoize('myfunc');
>
> but I also want to export it. Is there anything that I need to worry about?
>
> What happen if I memoize the function *after* it was already exported?
> does the exported function points to the regular or to the memoized
> function?
>

I tested it, and it seen that the exported is the regular function.
Oh well. one level of indirection never killed anyone...

Shmuel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.perl.org.il/pipermail/perl/attachments/20130627/31a0f99d/attachment.htm 


More information about the Perl mailing list