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


in reply to Memory usage of array and hashe variables by multiple inclusion.

G'day tobias_hofer,

"Can modules be loaded several times?"

require says:

require demands that a library file be included if it hasn't already been included.

and use says:

It is exactly equivalent to

BEGIN { require Module; Module->import( LIST ); }

So, assuming you're using use or require to load the modules, the answer's no.

You may find Test::LeakTrace helpful.

-- Ken

Replies are listed 'Best First'.
Re^2: Memory usage of array and hashe variables by multiple inclusion.
by tobias_hofer (Friar) on Jul 02, 2013 at 11:31 UTC
    Hello Ken,

    Thanks a lot!
    So I can exclude this as root-cause of the memory consumption.
    ;-)