develooper Front page | perl.perl6.users | Postings from April 2019

lib for non-core, non-installed modules

From:
mimosinnet
Date:
April 18, 2019 11:05
Subject:
lib for non-core, non-installed modules
Message ID:
20190418110500.GA17508@mimomedia
Dear perl6 community,

I wonder what would be the right syntax for non-core, non-installed 
modules as discussed in StackOverflow? [1]. In other words, something 
similar to FindBin::libs in perl5. 

The solution I have come across is:

use lib $*PROGRAM.dirname.IO.add('../lib');

Is there a better syntax?

Cheers!


[1] https://stackoverflow.com/questions/51089505/trying-to-manage-perl6s-repo-at-runtime/51092821#51092821


-- 
(≧∇≦) Mimosinnet (Linux User: #463211)



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About