Re: Is there an equivalent env var to PERL5LIB for Perl 6 module locations?

2015-03-31 Thread Carl Mäsak
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 r...@hoelz.ro wrote:
 Yup, PERL6LIB. =)

 On Mon, 30 Mar 2015 17:03:05 -0500
 Tom Browder tom.brow...@gmail.com 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?

2015-03-31 Thread Tom Browder
On Mon, Mar 30, 2015 at 7:35 PM, Rob Hoelz r...@hoelz.ro 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?

2015-03-31 Thread Paul Cochrane
On Tue, Mar 31, 2015 at 05:40:44AM -0500, Tom Browder wrote:
 On Mon, Mar 30, 2015 at 7:35 PM, Rob Hoelz r...@hoelz.ro 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?

2015-03-31 Thread Fields, Christopher J
On Mar 31, 2015, at 6:28 AM, Paul Cochrane p...@liekut.de 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 r...@hoelz.ro 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?

2015-03-31 Thread Darren Duncan
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