Re: *more* relocatable perl

[email protected] (demerphq) Tue, 21 Jul 2026 23:43:00 +0200
Newsgroups perl.perl5.porters
Message-ID <CANgJU+WN2fVMaGjqOQMk+5Kso7dH71DFFrm+zeb9yrZ0n6E3qg@mail.gmail.com>
--000000000000d3485c065725e87b
Content-Type: text/plain; charset="UTF-8"

On Thu, 16 Jul 2026 at 14:08, Gianni Ceccarelli via perl5-porters <
[email protected]> wrote:

> Hello!
>
> For $work, I need to build a `perl` that can be copied in different
> locations, and should work fine from any of them.
>

Presumably you mean without any install step?

FWIW: Back in the day on Win32 Activestate had a relocatable perls, in the
sense that they would distribute prebuilt executables, but they had to go
through an install step to be usable (a win32 style installer). One trick I
remember they used (and the main reason I'm writing this email: to get this
concept on record in this thread), was to prefill certain fields in the
binary with a long series of nulls (or some other specialy crafted string).
They would then overwrite those fields in the binary during install.

Yves

--000000000000d3485c065725e87b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><span style=3D"background-color:transpare=
nt">On Thu, 16 Jul 2026 at 14:08, Gianni Ceccarelli via perl5-porters &lt;<=
a href=3D"mailto:[email protected]">[email protected]</a>&gt; wro=
te:</span></div><div class=3D"gmail_quote gmail_quote_container"><blockquot=
e class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px s=
olid rgb(204,204,204);padding-left:1ex">Hello!<br>
<br>
For $work, I need to build a `perl` that can be copied in different<br>
locations, and should work fine from any of them.<br></blockquote><div><br>=
Presumably you mean without any install step?=C2=A0</div><div><br></div><di=
v>FWIW: Back in the day on Win32 Activestate had a relocatable perls, in th=
e sense that they would distribute prebuilt=C2=A0executables, but they had =
to go through an install step to be usable (a win32 style installer). One t=
rick I remember they used (and the main reason I&#39;m writing this email: =
to get this concept on record in this thread), was to prefill certain field=
s in the binary with a long series of nulls (or some other specialy=C2=A0cr=
afted string). They would then overwrite those fields in the binary during =
install.=C2=A0</div><div><br></div><div>Yves=C2=A0=C2=A0</div></div></div>

--000000000000d3485c065725e87b--