in reply to How do I use a module?
sub BEGIN { push(@INC, "/try/looking/here"); #and other amazing tricks }
what the "BEGIN" subrouteen does is allow you to execute code BEFORE the script is compiled. This can allow you to do any pre-initialization you need to do for the script.
|
|---|