I think I have settled into a pattern for benchmarking and deploying #Perl code which I followed here:
https://github.com/chrisarg/benchmarking-bits

Use #perlbrew to install a fresh version of #perl , switch to that version and through the process of testing-in-production figure out what is missing so that it can become part of the installation script.

Thinking of doing something similar with #rstats but since there is no equivalent to #perlbrew perhaps setup chroot environments?

GitHub - chrisarg/benchmarking-bits: Benchmarking of the Bit library against alternatives

Benchmarking of the Bit library against alternatives - GitHub - chrisarg/benchmarking-bits: Benchmarking of the Bit library against alternatives

GitHub
@FritzAdalis yes, but this isn't the sort of problem #perlbrew can help with as I was already using my own custom builds of #perl that don't go anywhere near the version of perl in /usr/bin.

雖然寫了 prompt() 的單元測試,但 e2e 測試要怎麼模擬出有人在前面按 Y 或 N ...

好像只能在 shell script 中靠類似這種方式:

yes | perlbrew ...
yes n | perlbrew ...
echo | perlbrew ...

#perlbrew

https://github.com/gugod/App-perlbrew/pull/856

#perlbrew

#perl

open my $in, '<' \$str;
open my $out, '>', \$str;

我記得這語法在很舊的 perl 是不管用的,但我應該不必擔心(吧)

add: A minimum implementation of prompt() by gugod · Pull Request #856 · gugod/App-perlbrew

As a way to address the issue of #843

GitHub

https://github.com/gugod/App-perlbrew/issues/843

來試着把 `ExtUtils::MakeMaker` 這個 dependency 拔掉好了。

#perlbrew
#coscup

New Perlbrew install can't install Perls. Can't locate ExtUtils/MakeMaker.pm · Issue #843 · gugod/App-perlbrew

Can't install Perls on brand new RHEL8 install on a new VM $ curl -L https://install.perlbrew.pl|bash $ source ~/perls/perlbrew/etc/bashrc $ perlbrew init $ perlbrew install --thread --multi --64in...

GitHub
App-perlbrew-1.02

Manage perl installations in your $HOME

MetaCPAN
@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?

https://github.com/gugod/App-perlbrew/actions/runs/13212861754

Working on running simple end-to-end tests for #perlbrew that is just building #perl on commonly used Linux distributions.

Couldn't figure out why the test htmldir3.t failed only on #RockyLinux but not on other linux distributions.

I'm willing to bet that a few packages needs to be present, but not sure what that might be.

specifically use bash, other on debian and ubuntu it seems to be dash. · gugod/App-perlbrew@19f34e7

Manage perl installations in your $HOME. Contribute to gugod/App-perlbrew development by creating an account on GitHub.

GitHub

https://github.com/gugod/App-perlbrew/actions/runs/13100409688/job/36547979805

Any cygwin users ?

I'm trying to run perlbrew tests on cygwin on GitHub Action. Most of the setup worked but it ended up with this error of missing `crypt.h` when installing dependencies. Module::Build::Tiny in this case, but perhaps there will be more.

If you know how this can be resolved or avoided, please help!

#perlbrew
#perl
#cygwin

specifically use bash, other on debian and ubuntu it seems to be dash. · gugod/App-perlbrew@19f34e7

Manage perl installations in your $HOME. Contribute to gugod/App-perlbrew development by creating an account on GitHub.

GitHub
let e2e.yml be generated from e2e.ys by gugod · Pull Request #836 · gugod/App-perlbrew

Follow-up work of #834.

GitHub