Matt S Trout wrote:
> On Mon, Mar 25, 2013 at 06:11:33PM -0700, Linda W wrote:
>
>> ----
>> use mem doesn't load modules.
>>
>> if it is put *in* a module, it directs perl to use the "in memory" copy
>> of the module rather
>> than searching for it on disk **when**, a user does a "use" of that
>> module, later in the file.
>>
>
> Well, given everybody on this list apparently had the same misunderstanding,
> I think it probably needs a different name.
>
----
Just out of curiosity, did anyone look at the POD of the page?
(1st paragraph):
"use mem" is a trivial pragma to either allow defining the module
it is
included from as being defined so that later classes or packages
in the
same file can "use" the package to pull in a reference to it, or
to be
able to call its import routine from a different package in the same
file.
Or the tag line:
mem -- use in-"mem"ory version of (calling) module