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

_ sub is superglobal #12

Open
haarg opened this issue Jan 6, 2014 · 0 comments
Open

_ sub is superglobal #12

haarg opened this issue Jan 6, 2014 · 0 comments

Comments

@haarg
Copy link

haarg commented Jan 6, 2014

Using _ as a sub name is somewhat problematic, as it always refers to main::. The code makes attempts to export to _ by default, but this is almost entirely useless. The sub as defined in the module is created as main::, and even if it wasn't, () in a consuming module will always refer to main::, ignoring any imported version.

I don't think there's any real fix for this aside from using a different name, but it should at least be documented.

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