in reply to Perl Modules Scope ?
It would help us (certainly it would help me) if you would format your separate code chunks in code blocks. See Writeup Formatting Tips.