@ferki @verzulli If I understand your requirements correctly, you could install a #perl version with #perlbrew on your local machine, install your required modules with #cpanm and provided libraries match between your dev and prod machines you can just copy the perl directory and run the perl with full path in the new location.
If there is a library mismatch you are in a bit of pain to get it to work no matter what you do.
May I suggest you build the restapi with #mojolicious?
最終回 Carmelによる依存モジュール管理 CPANモジュールの更新を高速、安全に(2) | gihyo.jp

本連載では第一線のPerlハッカーが回替わりで執筆していきます。今回のハッカーはcpanm、Plackの作者としても知られる宮川達彦さんで、テーマは「Carmelによる依存モジュール管理(2)」です

gihyo.jp
最終回 Carmelによる依存モジュール管理 CPANモジュールの更新を高速、安全に(1) | gihyo.jp

本連載では第一線のPerlハッカーが回替わりで執筆していきます。今回のハッカーはcpanm、Plackの作者としても知られる宮川達彦さんで、テーマは「Carmelによる依存モジュール管理」です

gihyo.jp

I’ve just published a new Ansible module called perlmod_install_info whose purpose is to help you install Perl modules on systems in the most portable way possible.

Specifically, this module knows how to search for Perl modules in dnf, yum, and apt repositories as well as in cpanm. It prefers the OS repositories over CPAN because generally speaking you’re better off going with the OS-packaged versions of modules when they’re available, both because that’s more robust and because the OS packages install much faster than CPAN. CPAN is needed as a backstop because the OS distributions don’t include all Perl modules.

What’s especially clever about this module is that when it does need to resort to CPAN to find a module that isn’t available in the OS repository, it recursively determines all of the dependencies of that module and checks for them in the OS repository. It then returns lists of modules you can install from the OS and modules you need to install from CPAN, so you can minimize the number of modules that end up coming from CPAN.

If this sounds useful to you, you can check it out on GitHub.

#Ansible #apt #CPAN #cpanm #dnf #Perl #perlmodInstallInfo #yum

https://blog.kamens.us/2023/09/13/just-published-perlmod_install_info-ansible-module/

GitHub - jikamens/ansible-perlmod-install-info

Contribute to jikamens/ansible-perlmod-install-info development by creating an account on GitHub.

GitHub

I tried to tinker a bit with some Git branch for a future #PullRequest before “doing the real work” …

Now I’ve dug deeply into `cpanm` code, created two truth tables of 32 cases each and lost the whole day writing a lengthy update on this #GitHub issue. 😂
https://github.com/miyagawa/cpanminus/issues/651#issuecomment-1693607035

The issue is actually about building small #Docker containers with minimal @Perl dependencies while using the #CPAN client #cpanm alias #cpanminus.

Installing dependencies without "test" phase · Issue #651 · miyagawa/cpanminus

I’m going to build a minimal Docker image for an application that should only include runtime dependencies. I want to install all dependencies with --notest and just realized that this still instal...

GitHub

Having always used #cpanm with #perl I'm now looking into #Carmel and find it an interesting concept. However, with cpanm and a #cpanfile I can declare a feature which include dependencies that are only installed when I pass the flag to cpanm. But it seems this isn't possible to do with Carmel?

@Perl

How To Install Perl Modules On Linux - OSTechNix

This brief guide explains how to install Perl modules on Linux from CPAN (Comprehensive Perl Archive Network) repository using cpan and cpanminus clients.

OSTechNix