in reply to BEGIN { } block
Because BEGIN blocks are executed ASAP ( perlmod ), i use them to change @INC to allow me to load local modules :
BEGIN { unshift @INC, "$ENV{HOME}/Desktop/CODE/lib"; ## include local lib };
I am sure there are better examples out there though!
|
|---|