Why would you need this? Mangling with things outside of your lexical scope 
isn't one of the best ideas. Perhaps, you could achieve same result with simply 
exporting the subset from the module using selective export with `is 
export(:tag)`?

Best regards,
Vadim Belman

> On Sep 20, 2019, at 3:32 PM, Paul Procacci <pproca...@gmail.com> wrote:
> 
> As the subject suggests, I'd like to dynamically export/import symbols from a 
> source file into the global scope of the program.  How would one accomplish 
> this?
> 
> Given the below, it yields an error _which I expect_.  How do I dynamically 
> pull in the subset 'What'?
> 
> 
> File: Testing.pm6
> --------------------------
> 
> subset What of Str;
> class Testing {}
> 
> 
> 
> File: main.pl <http://main.pl/>
> --------------------------
> {
> my $c = 'Testing';
> require ::($c);
> my $t = ::($c).new;
> }
> 
> my What $x = 'Blah'
> 
> 
> -- 
> __________________
> 
> :(){ :|:& };:

Reply via email to