in reply to Writing Modules
The lexical variable $thing, has file scope -- its not visible outside pack.pm -- see Tutorials: Coping with Scoping
For a module to be a module, and to be loadable using use, the package name has to match the filename -- see Tutorials: Simple Module Tutorial
|
|---|