in reply to #include files
And the reason you can't see my variables from the included script is because my declares a lexical variable which will falls out of scope at the end of a file (as lexical variables are declared into the surrounding file scope by default). So your alternatives are to either export your variables by implementing import() and turning your file into a module (perhaps not ideal for your situation), or using package variables which are visible throughout the execution of a program.
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: #include files
by Anonymous Monk on Oct 26, 2003 at 17:48 UTC | |
by broquaint (Abbot) on Oct 28, 2003 at 10:17 UTC |