My *guess* is no because that would be silly.

My *semi-proof* is if you have use warnings on and your program compiled a module over again that has already been included then it would complain about redefining each of the sub routines in that module.

My *guess* is that perl internally either keeps track of the list of packages already compiled in, or uses a check on the namespace in some manner, though I am slow to think about whether this last bit is possible right now. Back to football I guess :-)....................

http://danconia.org

MMKHAJAH wrote:
Hello,
I wonder wether 'use module' compiles only once. I mean that all sebsequent calls don't involve compiling.
Example:
MyLib.pm

package MyLib;
use strict;
use MyConfig;

##
## Code the uses MyConfig
##

MyScript.pl
use MyLib;
use MyConfig;

Will the 'use MyConfig' in the second file compile again?

Thanks in advance


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to