我有一个 Perl 模块,它本身似乎可以很好地编译,但是在包含它时会导致其他程序编译失败:
me@host:~/code $ perl -c -Imodules modules/Rebat/Store.pm
modules/Rebat/Store.pm syntax OK
me@host:~/code $ perl -c -Imodules bin/rebat-report-status
Attempt to reload Rebat/Store.pm aborted
Compilation failed in require at bin/rebat-report-status line 4.
BEGIN failed--compilation aborted at bin/rebat-report-status line 4.
的前几行rebat-report-status
是
...
3 use Rebat;
4 use Rebat::Store;
5 use strict;
...