in reply to What is the scope of BEGIN? Or... when does it "begin?"
I am puzzled, too. So far I did things like:
Which worked perfectly. After reading argvs node, I tested:use strict; BEGIN{unshift (@INC,"\\mylib");} use mylib1;
Which produced an error. So far I thought BEGIN{} would be executed always before anything else...use strict; use mylib1; BEGIN{unshift (@INC,"\\mylib");}
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: What is the scope of BEGIN? Or... when does it "begin?"
by Mutant (Priest) on May 06, 2005 at 08:38 UTC |
In Section
Seekers of Perl Wisdom