does the subroutine "bar" run every time I put use Model::Conf in other packages?
If you use or require the module, Perl keeps tracks of already loaded modules (in %INC), so the code is loaded/compiled/executed only once.
(do EXPR also adds an entry in %INC, but doesn't check itself before loading, so with do the module's code would be executed several times.)
In reply to Re: package compiling
by Eliya
in thread package compiling
by simonodell
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |