Support export_to_level
Methods exported by export_to_level highlighted with "Unable to find sub definition, declaration, constant definition or typeglob aliasing"
see https://perldoc.perl.org/Exporter.html
package A;
use Data::Dumper;
use Clone;
@ISA = qw(Exporter);
sub import {
Data::Dumper->export_to_level(1, qw(Dumper));
Clone->export_to_level(1);
}
########
package B;
use A;
sub foo {
Dumper('bar'); # Unable to find sub definition, declaration, constant definition or typeglob aliasing
}
I'm aware of this method. But the problem that in most cases it's not declarative, but just a part of some logic: loop or something. And this can't be handled properly right now.
Atm it's faster to support specific cpan modules explicitly, so let me know if there are any. This feature is not going to be implemented soon.
But the problem that in most cases it's not declarative
Is it possible to implement at least declarative ones like PACKAGE->export_to_level?
Up )