Re: Is there an equivalent env var to PERL5LIB for Perl 6 module locations?
I for one did not know/remember about PERL6LIB and rather all I knew was the more ambitious plan at http://design.perl6.org/S11.html about CompUnitRepo and such. -- Darren Duncan
Re: Is there an equivalent env var to PERL5LIB for Perl 6 module locations?
On Mar 31, 2015, at 6:28 AM, Paul Cochrane wrote: > > On Tue, Mar 31, 2015 at 05:40:44AM -0500, Tom Browder wrote: >> On Mon, Mar 30, 2015 at 7:35 PM, Rob Hoelz wrote: >>> Yup, PERL6LIB. =) >> >> And how did you find out about it, i.e., where is it documented? > > http://doc.perl6.org/language/5to6#Environment_variables > > to be honest I cheated and have written the docs just today. :-) > > A `git grep LIB` in the spec sources turned up the text on environment > variables in S19, so that'd be one place to check as well. In general, if a > search like that doesn't seem to turn up much, a `git grep` in the Rakudo > sources also turns up quite a bit of info. > > Cheers, > > Paul Funny, I had been using PERL6LIB for a number of years now and had assumed it was already documented (I recall it’s use popping up on IRC a number of years ago, which is where I picked it up). chris
Re: Is there an equivalent env var to PERL5LIB for Perl 6 module locations?
On Tue, Mar 31, 2015 at 05:40:44AM -0500, Tom Browder wrote: > On Mon, Mar 30, 2015 at 7:35 PM, Rob Hoelz wrote: > > Yup, PERL6LIB. =) > > And how did you find out about it, i.e., where is it documented? http://doc.perl6.org/language/5to6#Environment_variables to be honest I cheated and have written the docs just today. :-) A `git grep LIB` in the spec sources turned up the text on environment variables in S19, so that'd be one place to check as well. In general, if a search like that doesn't seem to turn up much, a `git grep` in the Rakudo sources also turns up quite a bit of info. Cheers, Paul
Re: Is there an equivalent env var to PERL5LIB for Perl 6 module locations?
On Mon, Mar 30, 2015 at 7:35 PM, Rob Hoelz wrote: > Yup, PERL6LIB. =) And how did you find out about it, i.e., where is it documented? Thanks. -Tom
Re: Is there an equivalent env var to PERL5LIB for Perl 6 module locations?
It's worth noting that PERL6LIB is at most a developer convenience, shouldn't be encouraged or used by module consumers, and will possibly be deprecated in the future. This is because Perl 6 has a slightly more ambitious view of module loading which isn't directly compatible with OS paths. I use PERL6LIB all the time when I develop, though. // Carl On Tue, Mar 31, 2015 at 2:35 AM, Rob Hoelz wrote: > Yup, PERL6LIB. =) > > On Mon, 30 Mar 2015 17:03:05 -0500 > Tom Browder wrote: > >> I would like an easy way to have a local search path for local Perl 6 >> modules (those not installed via Panda). >> >> I'm used to using the environment variable PERL5LIB for Perl 5 >> modules. Is there currently any equivalent way to do that for Perl 6? >> >> Thanks. >> >> -Tom >> >
Re: Is there an equivalent env var to PERL5LIB for Perl 6 module locations?
Yup, PERL6LIB. =) On Mon, 30 Mar 2015 17:03:05 -0500 Tom Browder wrote: > I would like an easy way to have a local search path for local Perl 6 > modules (those not installed via Panda). > > I'm used to using the environment variable PERL5LIB for Perl 5 > modules. Is there currently any equivalent way to do that for Perl 6? > > Thanks. > > -Tom >
Is there an equivalent env var to PERL5LIB for Perl 6 module locations?
I would like an easy way to have a local search path for local Perl 6 modules (those not installed via Panda). I'm used to using the environment variable PERL5LIB for Perl 5 modules. Is there currently any equivalent way to do that for Perl 6? Thanks. -Tom