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 ...
In reply to Re: Variables in a single file
by almut
in thread Variables in a single file
by northwestdev
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |