The problem is that package doesn't in and of itself introduce a new lexical scope so the previous $value (declared in the outer file-wide scope) is still valid. If you're trying to keep things grouped in the same file then wrap each package's contents in curlies so that there's a separate explicit lexical scope (or just put things in multiple files to begin with . . . :).
Update: Added parenthetical on file scope.
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: To be, or not to be, a package? That is the question
by Fletch
in thread To be, or not to be, a package? That is the question
by Bloodnok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |