http://qs1969.pair.com?node_id=11146013

LittleJack has asked for the wisdom of the Perl Monks concerning the following question:

I need to test what happens when a module is installed at a non-standard location.

So I installed HTML::Template using:

cpanm -l "C:/Users/Me/SecretModules" HTML::Template

And installation was successful.

When I go to use it (from Eclipse), like this:

Package::DummyModule; use lib 'C:/Users/Me/SecretModules/lib/perl5'; use Text::HTML;

It says that it can't find the module:

Can't locate Text/HTML.pm in @INC (you may need to install the Text::H +TML module) (@INC contains: C:/Users/Me/SecretModules/lib/perl5/MSWin +32-x64-multi-thread [etc]

So I'm confused. The module is installed at C:/Users/Me/SecretModules/lib/perl5 and there's a packlist file in C:/Users/Me/SecretModules/lib/perl5/MSWin32-x64-multi-thread/auto — but why can't Strawberry Perl find the module? Why does it automatically append the multi-thread directory? Can I install in such a way that it's non-multi-thread compatible?

TIA

Replies are listed 'Best First'.
Re: Strawberry Perl can't find a module installed at a non-standard location
by LanX (Saint) on Aug 08, 2022 at 00:12 UTC

      Oh my god the shame. In my defence it's Monday morning where I am and I had not had my coffee.

      How do I deleted?!

      No seriously, thanks.

        "How do I deleted?!"

        Actually you don't. See "How do I change/delete my post?" for more about that.

        Don't worry too much about what you did. We've all probably done similar things at one time or another; I certainly have.

        — Ken