in reply to Variables in a single file
If you use use or require, Perl makes sure that the module (or simply a codeblock of variable declarations) is loaded only once. Note, however, that the loaded file has its own implicit lexical scope — which matters for variables declared with my or our ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Variables in a single file
by LanX (Saint) on Sep 16, 2009 at 13:41 UTC | |
by almut (Canon) on Sep 16, 2009 at 14:10 UTC | |
by LanX (Saint) on Sep 16, 2009 at 16:53 UTC |