Subject: | Failure if ./lib does not exist |
[Note: I've only reproduced this bug in v0.20, but I checked the CPAN source of v0.20_02 and that version appears to still have the same bug]
If the current directory lacks a ./lib directory, then find_dist_packages() fails with the following error:
Can't use an undefined value as a HASH reference at /perl/lib/site_perl/5.8.0/Module/Build/Base.pm line 1624.
This happens on the line that calls find_pm_files(). The failure ultimately occurs because _find_file_by_type() has the following line:
return unless -d 'lib';
which should probably be:
return {} unless -d 'lib';
since the callers expect a hash reference.