Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Document PERL6LIB
  • Loading branch information
Paul Cochrane committed Mar 31, 2015
1 parent 53efe71 commit 335b030
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lib/Language/5to6.pod
Expand Up @@ -1054,6 +1054,25 @@ e.g.:
my @lines = "test-file".IO.slurp.split(/\n/);
say @lines.elems; #-> 4
=head2 Environment variables
=head3 Perl module library path
In Perl5 one of the environment variables to specify extra search paths for
Perl modules is C<PERL5LIB>.
$ PERL5LIB=/some/module/lib perl program.pl
In Perl6 this is similar, one merely needs to change a number! As you
probably guessed, you just need to use C<PERL6LIB>:
$ PERL6LIB=/some/module/lib perl6 program.p6
As with Perl5, if you don't specify C<PERL6LIB>, you need to specify the
library path within the program via the C<use lib> pragma:
use lib '/some/module/lib'
=head2 Misc.
=head3 C<dump>
Expand Down

0 comments on commit 335b030

Please sign in to comment.