develooper Front page | perl.beginners | Postings from May 2019

Re: What are the environmental variables used by Perl?

Thread Previous | Thread Next
From:
Andrew Solomon
Date:
May 30, 2019 13:19
Subject:
Re: What are the environmental variables used by Perl?
Message ID:
CAN=twKtkpPw3RwQnWPhGjPWky788HZLDDBRz8YHYkSS+f-JO1g@mail.gmail.com
In that case I think this should do the trick:

export PERL5LIB="$PWD:$PERL5LIB"

On Thu, May 30, 2019 at 2:14 PM Jeffrey Walton <noloader@gmail.com> wrote:

> On Thu, May 30, 2019 at 9:06 AM Hao Wu <echowuhao@gmail.com> wrote:
> >
> > https://perldoc.perl.org/Env.html
>
> Thanks Hao.
>
> Is there a list of the environmental variables used by Perl?
>
> I'm not trying to write Perl code. I am trying to setup the
> environment because Perl can't find some files in a scratch directory.
>
> I need to get a directory on-path. So I am looking for something like:
>
>     export PERLPATH="$PWD:$PERLPATH"
>     make check
>     ...
>
> That's why I want to see the environmental variables Perl uses.
>
> Jeff
>
> > On Thu, May 30, 2019 at 8:58 PM Jeffrey Walton <noloader@gmail.com>
> wrote:
> >>
> >> I need to fix a self test for a C library written in Perl. I don't
> >> know Perl so it is a struggle. I am happy to refer to the manual, and
> >> it is located at https://linux.die.net/man/1/perl (and others). It is
> >> not clear to me which section of the manual covers environmental
> >> variables used by Perl.
> >>
> >> I found this online, but it does not appear that Perl actually honors
> >> PATH: https://docs.perl6.org/programs/03-environment-variables . (I
> >> also found a lot of noise; like how to set and read an envar from
> >> Perl).
> >>
> >> Which section of the manual can I find a list of environmental
> >> variables used by Perl? Is there even a section that covers it?
> >>
> >> Or, what are the environmental variables used by Perl?
> >>
> >> Thanks in advance.
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> http://learn.perl.org/
>
>
>

-- 


Andrew Solomon
Director

P: +44 7931 946 062
E: andrew@geekuni.com

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About