复制FindBin::libsPerl 6中的行为.
(1) Start from `$Bin`.
(2) Search for `./lib` dir's above it.
(3) prefix them to the search list.
Run Code Online (Sandbox Code Playgroud)
在P6中,这需要管理$*REPO,我认为需要使用CompUnit::RepositoryRegistry,但我在modules.perl6.org(可能因为它是核心)或docs.perl6.org上找不到任何文档.
问:CompUnit::RepositoryRegistry使用一些新目录作为前缀管理列表是正确的$*REPO吗?
问:如果是,记录在哪里CU::RR?
问:如果没有,我应该使用什么?
谢谢