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!
In reply to Re: BEGIN { } block
by BioLion
in thread BEGIN { } block
by bob_dobalina
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |