Re: What am I doing wrong? A bad end-user experience

[email protected] (Jess Robinson)
Newsgroups perl.perl5.porters
Message-ID <[email protected]>
On Thursday 10 September 2026 12:48:34 (+01:00), Paul "LeoNerd" Evans 
wrote:

 > I keep a bunch of perl modules in my $HOME:
 > 
 >   $ env | grep PERL
 >   PERL5LIB=/home/leo/lib/perl5
 >   PERL_MB_OPT=--install_base=/home/leo
 >   PERL_MM_OPT=INSTALL_BASE=/home/leo
 > 
 > I use system perl.
 > 
 > Today, I ran some debian updates that jumped from perl 5.40 to 5.42.
 > Now, nothing is usable:
 > 
 >   $ eachperl list
 >   Perl API version v5.40.0 of Object::Pad does not match v5.42.0 at
 >   /usr/lib/x86_64-linux-gnu/perl-base/DynaLoader.pm line 218.
 >   ...
 > 

Agreed.

FWIW my current solution is: `mv ~/perl5 ~/perl5-5.40; cpanm --installdeps 
<whereever I needed deps for>` (repeat for every carton local/ as well)

It would be great if cpan-like tools installed all modules in a 5.40/ 
directory under ~/perl5 (or similar), and perl itself came up with 
something like "This is perl 5.42, you only have Object::Pad installed for 
5.40, fix using this command: cpan XXX"

Jess
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.