Re: *more* relocatable perl

Sam Kington <[email protected]> Tue, 21 Jul 2026 19:58:42 +0100
Newsgroups gmane.comp.lang.perl.perl5.porters
Message-ID <[email protected]>
--Apple-Mail=_F7481EC6-DBFC-4236-B02A-494A3D888175
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

> The problem with such an approach is that shebang lines don't change =
when you relocate your perl, so all scripts will suddenly break.

Most code I write says #!/usr/bin/env perl rather than hard-coding an =
executable location.

Sam
--=20
Website: https://www.illuminated.co.uk/


--Apple-Mail=_F7481EC6-DBFC-4236-B02A-494A3D888175
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><blockquote type="cite"><span style="font-family: Palatino-Roman;">The problem with such an approach is that shebang lines don't change when you relocate your perl, so all scripts will suddenly break.</span><br></blockquote><div><div dir="ltr" style="caret-color: rgb(0, 0, 0); font-family: Palatino-Roman; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div dir="ltr"><div dir="ltr"><div class="gma
 il_quote"><div><br></div><div>Most code I write says #!/usr/bin/env perl rather than hard-coding an executable location.</div><div><br></div></div></div></div></div></div><div>
<meta charset="UTF-8"><div>Sam<br>--&nbsp;<br>Website:&nbsp;https://www.illuminated.co.uk/</div>
</div>
<br></body></html>
--Apple-Mail=_F7481EC6-DBFC-4236-B02A-494A3D888175--