Why not use use SCP_Config instead of require SCP_Config? That will execute it at compile-time instead of at run-time.
Actually, if SCP_Config doesn't contain package SCP_Config;, I'd use BEGIN { do 'SCP_Config.pm' }. do will allow multiple files to use SCP_Config, and BEGIN will cause it to execute at compile-time.
In reply to Re: Dynamic Package Loading
by ikegami
in thread Dynamic Package Loading
by rashley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |