develooper Front page | perl.perl5.porters | Postings from May 2001

Re: Relocatable perl

Thread Previous | Thread Next
Alan Burlison
May 3, 2001 12:11
Re: Relocatable perl
Message ID:
Steve Fink wrote:

> Step #2 never fails, and deceives only if someone has messed with
> argv[0]. Which is not uncommon and apparently already confuses perl:

It will fail in the presence of a symlink, e.g.
/usr/local/bin/perl -> /some/other/place/bin/perl.  If realpath() is
available it can be used to chase along symlink trails.

Alan Burlison

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About