Tue Jan 10 02:37:27 2012: Request 73867 was acted upon.
Transaction: Correspondence added by RSCHUPP
Queue: Module-ScanDeps
Subject: Wrong type reported?
Broken in: (no value)
Severity: (no value)
Owner: Nobody
Requestors: [email protected]
Status: open
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=73867 >
On 2012-01-10 00:37:24, FANGLY wrote:
> does not contain any "package CPAN::Config;" line. It is more like
> configuration file (see the attached file). Would it not be
> more proper for it to be classified with a 'data' type
> instead of 'module'?
No. It's loaded via "require" or "use". That's a module.
> File /usr/share/perl5/Error/Simple.pm is an interesting example:
> http://cpansearch.perl.org/src/SHLOMIF/Error-0.17016/lib/Error.pm
>
> It does not contain the 'package' directive.
That's irrelevant.
> Since the file for the CPAN::Config module is in /etc/, it is easy to
> see that it is meant as a configuration file, but that is not a very
> portable way to identify this type of file.
Installing modules into /etc is specific to Debian?
Anyway it doesn't imply that the file isn't a module. It means
it may be modified by the administrator to taylor the system
(and hence the packaging system should NOT simply overwrite it when
updating the package it is in). Anyway, that doesn't affect its
role wrt Perl.
Closing this non-bug. Please use the PAR mailing list ([email protected])
for such discussions.
Cheers, Roderich