Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make "need" enable to throw an exception when it detects version token
Fixes RT#132214: https://rt.perl.org/Public/Bug/Display.html?id=132214 Disallows "need" to accept version token and to interpret content of the token (e.g., "v6") as a module name. This fix avoids the different behavior between "use" and "need-import" approach. For example, if "need" is allowed to interpret "v6" as a module name, "use" invokes pragma but "need-import" approach imports the module.
- Loading branch information