File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -511,8 +511,9 @@ zef --force install .
511
511
X < |use lib >
512
512
A user may have a collection of modules not found in the normal ecosystem,
513
513
maintained by a module or package manager, but needed regularly. Instead of
514
- using the C < use lib > pragma one can use the C < RAKULIB > environment variable to
515
- point to module locations. For example:
514
+ using the C < use lib > L < pragma|/language/pragmas#index-entry-lib__pragma > one
515
+ can use the C < RAKULIB > environment variable to point to module locations.
516
+ For example:
516
517
517
518
= for code :lang<shell>
518
519
export RAKULIB=/path/to/my-modules,/path/to/more/modules
@@ -837,7 +838,8 @@ zef install ./your-module-folder
837
838
= end code
838
839
839
840
Note that doing so precompiles and installs your module. If you make changes to
840
- the source, you'll need to re-install the module. (See C < use lib > pragma, C < -I >
841
+ the source, you'll need to re-install the module.
842
+ (See C < use lib > L < pragma|/language/pragmas#index-entry-lib__pragma > , C < -I >
841
843
command line switch, or C < PERL6LIB > env variable, to include a path to your
842
844
module source while developing it, so you don't have to install it at all).
843
845
Original file line number Diff line number Diff line change @@ -202,9 +202,13 @@ This pragma adds subdirectories to the library search
202
202
path so that the interpreter can
203
203
L < find the modules|/language/modules#Finding_modules > .
204
204
205
- = for code :solo
205
+ = begin code :solo
206
206
use lib <lib /opt/lib /usr/local/lib>;
207
207
208
+ #or a mixed list of IO::Path and Str
209
+ use lib ('.', '.'.IO, './lib'.IO);
210
+ = end code
211
+
208
212
This will search the directories passed in a list. Please check
209
213
L < the modules documentation|/language/modules#use > for more examples.
210
214
You can’t perform that action at this time.
0 commit comments