I'm discussing some potential refactorings at $work at wanted to give an articulate explanation of the benefits of having package declarations match file names, so that:

   # file is Foo/bar.pm
   package Foo::Bar;

One reason is so that when you see a "package" statement, you know what the corresponding "use" statement would be, and when you see a "use" statement, you know what the corresponding package is, and have a good clue about the path path of the file you are importing.

What are other good reasons to have package declarations match file paths?

-M

-------------------------------------------------------
Matisse Enzer <[EMAIL PROTECTED]>
http://www.matisse.net/  - http://www.eigenstate.net/



Reply via email to