Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with Log::Any #63

Open
XSven opened this issue Jan 17, 2022 · 1 comment
Open

Doesn't work with Log::Any #63

XSven opened this issue Jan 17, 2022 · 1 comment

Comments

@XSven
Copy link

XSven commented Jan 17, 2022

perlimports removes the import of a package global $logger variable. The use statement in

use Log::Any qw($logger);
$logger->info("some message");

is gone, if I apply perlimports to it.

@oalders
Copy link
Member

oalders commented Jan 19, 2022

Thanks for reporting this. perlimports needs to be smarter about things which only get exported if they get passed in to an import(). In the meantime, this should probably just be ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants