Subject: | Reports package "main" for pure-POD files |
In version 1.000027 and earlier, $metadata->name() would return the empty string after analyzing a file containing only POD. Trial versions 1.000028 and 1.000029 return "main" instead. This caused an issue for one of my modules (http://www.cpantesters.org/cpan/report/4f4e4d86-6934-11e5-8225-ee19d1d03245)
I was able to work around the issue, but I doubt I was the only one depending on the old behavior. I can see a reason for returning "main" for scripts, but it doesn't make as much sense for POD-only files.
I suggest that if the filename ends with ".pod" and there is no package statement, then name() should continue to return the empty string.