develooper Front page | perl.perl6.users | Postings from March 2021

Re: Find Packages with prefix ...

Thread Previous | Thread Next
Daniel Sockwell
March 7, 2021 14:27
Re: Find Packages with prefix ...
Message ID:
Hi Paul,

That's an interesting question, and I have a few thoughts below.  Before I get to those, I wanted
to point out an issue with the way you started your email with "Hey Gents": the Raku community 
includes many talented women, and I'd love to see it include more.

On to the technical question:

> Given this, I'd like the main program to perform a prefix search of installed modules with that
> namespace as a prefix, load said modules it finds, perform callbacks that I would designate as
> being required to successfully load the module, etc.

I _believe_ something like this should be possible with CompUnit::Repository::Installation, or 
maybe with CompUnit::RepositoryRegistry.  I say "believe" both because I haven't tried it myself
and because the documentation for CompUnit isn't yet very complete – indeed, ::RepositoryRegistry
seems to be entirely undocumented.

The docs at might
be a good starting point, but this is unfortunately an area that will probably take a bit more 
digging in the source. If you find a good solution, please let us all know – as I said, it's an
interesting question.

I hope that was helpful!

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About