Subject: | sub main incorrectly triggers the package reporting an invalid namespace |
I should probably get a small award for bumping into the most obscure bugs.
If a package has in it:
sub main { }
Module::Metadata reports that the same as if somebody had declared
package main; Sure, hopefully nobody in the real world does this, and I just so happened to be unfortunate enough to have used that in one of my test cases1, and only hit it due to moving the code to use Module::Metadata instead of Module::Extract::Namespaces. ( )
But all the same, that's a suspiciously weird and unique bug that slightly worries me.
1.https://metacpan.org/source/KENTNL/Dist-Zilla-Plugin-MetaProvides-Package-1.12060502/corpus/dist/DZ2/lib/DZ2.pm