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

Allow import of variable when a typeglob is exported #97

Open
oalders opened this issue Feb 16, 2023 · 0 comments
Open

Allow import of variable when a typeglob is exported #97

oalders opened this issue Feb 16, 2023 · 0 comments

Comments

@oalders
Copy link
Member

oalders commented Feb 16, 2023

#!perl

use 5.36.0;

use English qw( $PROGRAM_NAME );

say $PROGRAM_NAME;
perlimports --lint english.pl
❌ English (import arguments need tidying) at english.pl line 5
@@ -5 +5 @@
-use English qw( $PROGRAM_NAME );
+use English qw( *PROGRAM_NAME );

The original should pass linting as it's correct and a more minimal import.

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

1 participant