in reply to Re: What is the scope of BEGIN? Or... when does it "begin?"
in thread What is the scope of BEGIN? Or... when does it "begin?"
That is, the perl module contains code that sets a variable, and then a BEGIN block tests that variable. So, why can't I assume that the variable is set since (as you said above), the module was included using "use", which means it's like it's in a BEGIN? I take it that BEGINs can be nested.... which I think is the only explanation...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: What is the scope of BEGIN? Or... when does it "begin?"
by merlyn (Sage) on May 06, 2005 at 05:36 UTC | |
by ysth (Canon) on May 06, 2005 at 16:15 UTC | |
by argv (Pilgrim) on May 06, 2005 at 17:17 UTC | |
by tye (Sage) on May 06, 2005 at 17:44 UTC | |
by argv (Pilgrim) on May 06, 2005 at 17:54 UTC | |
by tye (Sage) on May 06, 2005 at 18:02 UTC | |
|
Re^3: What is the scope of BEGIN? Or... when does it "begin?"
by tlm (Prior) on May 06, 2005 at 05:34 UTC |