Front page | perl.perl5.porters |
Postings from April 2001
Re: Relocatable perl
Thread Previous
|
Thread Next
From:
Dan Sugalski
Date:
April 30, 2001 09:26
Subject:
Re: Relocatable perl
Message ID:
5.0.2.1.0.20010430120759.01fedc28@24.8.96.48
At 05:04 PM 4/30/2001 +0100, Alan Burlison wrote:
>Dan Sugalski wrote:
>
> > s/perl/perl on Unix/;
> >
> > ;-P (Not that I'd want to point out that we've been doing this on VMS for
> > as long as I've been doing perl. That'd be crass. :)
>
>I stand corrected :-)
>
>So how does it work on VMS then?
All the relocatable parts vector off of a logical PERL_ROOT, and all those
#defined locations start out something like "PERL_ROOT:[". It's essentially
the same as having perl work off an environment variable, except I can set
the variable once per system boot and protect it well enough that perl can
trust that someone with "nuke the system" privs set it up in case we're
worried about spoofing security. The Unix equivalent would be to root the
libraries with "${PERL_ROOT}/" more or less. (Modulo actually correct shell
env variable syntax... :)
We don't go quite as far as having the perl executable actually figure out
its current location and set PERL_ROOT at runtime--we could but it'd make
linking in the shared-library part of perl (which is also located relative
to PERL_ROOT) a bit more of a pain. We'd have to do the equivalent of
dlopen()ing it, rather than have the image activator go find it for us at
image start time.
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
dan@sidhe.org have teddy bears and even
teddy bears get drunk
Thread Previous
|
Thread Next