Is it better to use a "packaged" easily installable version of Perl such as Strawberry on a Windows OS or to compile a version or there is no practical difference, etc...?
Perl 5.38.0 builds easily on Windows, and "straight out of the box" - using either Visual Studio 2022 or mingw-w64 ports of gcc-12 or gcc-13 (available from
https://winlibs.com).
But I doubt that you'll get any advantage (in either speed or reliability) by using a perl that was built on your own machine.
The main thing you'll get by building perl yourself is the opportunity to have a perl that's configured the way you want.
For example, if you're not wanting to use either the fork() function or threads, you could build your own unthreaded perl - which, I believe, does provide a measurable improvement in speed.
For example, if (as I do) you want a perl that has an nvtype of __float128, then you'll have to build that perl yourself.
There are also considerations to be made in your choice of compiler.
For example, VS2022 builds of perl-5.38.0 support utf8 locales that StrawberryPerl doesn't.
The main advantage of Strawberry Perl is that it comes with a large range of additional modules, many of which rely on 3rd party libraries.
A perl that you build from source won't include those modules (which populate Strawberry's perl/vendor/lib directory).
The more people that build perl (including the monthly devel releases) on Windows, the better it is for perl.
One simple way is to start by editing the (self-documenting) perl-5.38.0/win32/GNUmakefile (or perl-5.38.0/win32 Makefile if building with MS Visual Studio).
All you really need do is:
1) Ensure that INST_DRV and INST_TOP specify the location in which you want perl to be installed;
2) For gcc builds, uncomment the line
#CCTYPE := GCC; for VS2022 builds, uncomment the line
#CCTYPE = MSVC143;
3) For gcc builds, uncomment the line
#CCHOME := C:\MinGW and edit it to specify the directory that contains gcc's
bin directory.
That should build you a perl that is configured essentially the same as Strawberry Perl.
Then, cd to the perl-5.38.0/win32 folder and run:
1)
gmake test (or
nmake test for Visual Studio builds).
2)
gmake install (or
nmake install).
Following that, if you wish to re-use the same source to build a different configuration of perl, first run
gmake distclean or
nmake distclean.
Any problems, just ask.
Cheers,
Rob.