On Fri, Sep 19, 2014 at 3:22 PM, RAPPAZ Francois <francois.rap...@unifr.ch> wrote:
> One more thing: I piped the output of pp in a file and I can read > > C:\strawberry\perl\site\bin/pp: ... adding > C:/strawberry/perl/site/lib/auto/clone/Clone.bs as lib/auto/clone/Clone.bs > C:\strawberry\perl\site\bin/pp: ... adding > C:/strawberry/perl/site/lib/auto/clone/Clone.dll as lib/auto/clone/Clone.dll > C:\strawberry\perl\site\bin/pp: ... adding <string> as > lib/auto/clone/autosplit.ix > > That the clone with lower case is outputted here (I did check that it is > C:/strawberry/perl/site/lib/auto/Clone that I have on my disk > A stray "use clone" would have the same effect: C:\temp>pp -vvv -p -o foo.par -E "use clone;" E:\strawberry\perl\site\bin/pp: Packing C:\DOKUME~1\roderich\LOKALE~1\Temp\pp2G6Eh.pl E:\strawberry\perl\site\bin/pp: Writing PAR on foo.par E:\strawberry\perl\site\bin/pp: ... adding E:/strawberry/perl/vendor/lib/auto/clone/Clone.dll as lib/auto/clone/Clone.dll E:\strawberry\perl\site\bin/pp: ... adding <string> as lib/auto/clone/autosplit.ix E:\strawberry\perl\site\bin/pp: ... adding <string> as lib/clone.pm or even C:\temp>pp -vvv -p -o foo.par -E "clone::wtf();" E:\strawberry\perl\site\bin/pp: Packing C:\DOKUME~1\roderich\LOKALE~1\Temp\pp213vD.pl E:\strawberry\perl\site\bin/pp: Writing PAR on foo.par E:\strawberry\perl\site\bin/pp: ... adding E:/strawberry/perl/vendor/lib/auto/clone/Clone.dll as lib/auto/clone/Clone.dll E:\strawberry\perl\site\bin/pp: ... adding E:/strawberry/perl/vendor/lib/auto/clone/autosplit.ix as lib/auto/clone/autosplit.ix E:\strawberry\perl\site\bin/pp: ... adding E:/strawberry/perl/vendor/lib/ clone.pm as lib/clone.pm That's because Module::ScanDeps has the following (mis?)feature: if it sees a fully qualified function call like "... Foo::Bar::frobnicate(...)..." ANYWHERE in a file it goes looking for a module Foo::Bar. Cheers, Roderich