|We don't bite newbies here... much|
Module's name and file's nameby beurive.denis (Novice)
|on Jan 22, 2013 at 19:50 UTC||Need Help??|
beurive.denis has asked for the
wisdom of the Perl Monks concerning the following question:
I've a question about modules.
It seems to me that the name of the file that implements a module should be the name of the module.
For example, let say that I want to write the module "MyModule".
I create the file "MyModule.pm".
This file looks somethong like :
Recently I used modules that do not follow this convention. Please note that these modules do not declare "use strict"…
For example, the module looks something like :
The module's file is "MyModule.pm". And the code looks something like :
I had many problems with these modules…
Is it a problem if the name of the module (as declared by "package"), is not the name of the file ?
I think that it is a problem...
But I can't explain why.
Could you explain me ?